com.intel.analytics.zoo.pipeline.api.keras.layers
The dimension to narrow. 0-based index. Cannot narrow the batch dimension. -1 means the last dimension of the input.
Non-negative integer. The start index on the given dimension. 0-based index.
The length to narrow. Default is 1. Can use a negative length such as -1 in the case where input size is unknown.
A Single Shape, does not include the batch dimension.
The dimension to narrow.
The dimension to narrow. 0-based index. Cannot narrow the batch dimension. -1 means the last dimension of the input.
Build graph: some other modules point to current module
Build graph: some other modules point to current module
upstream variables
Variable containing current module
A Single Shape, does not include the batch dimension.
The length to narrow.
The length to narrow. Default is 1. Can use a negative length such as -1 in the case where input size is unknown.
Non-negative integer.
Non-negative integer. The start index on the given dimension. 0-based index.
(Since version 0.3.0) please use recommended saveModule(path, overWrite)
Narrow the input with the number of dimensions not being reduced. The batch dimension needs to be unchanged. For example, if input is: 1 2 3 4 5 6 Narrow(1, 1, 2) will give output 2 3 5 6 Narrow(1, 2, -1) will give output 3 6
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
Remark: This layer is from Torch and wrapped in Keras style.
Numeric type of parameter(e.g. weight, bias). Only support float/double now.