Constructor
new Reshape(args, input)
- Source:
Constructor
Parameters:
Name | Type | Description |
---|---|---|
args |
Object | Properties of conv layer. |
input |
Layer | undefined | Input layer. |
Extends
- @memberof
Methods
build(writer, opts)
- Source:
Build layer.
Parameters:
Name | Type | Description |
---|---|---|
writer |
Writer | Writer object used to build. |
opts |
Object | Options. |
computeOutputShape() → {Array.<Number>}
- Source:
Compute output shape.
Returns:
Output Shape
- Type
- Array.<Number>
countNeurons() → {Number}
- Source:
Get neurons in this layer.
Returns:
Number of neurons.
- Type
- Number
countWeights() → {Number}
- Source:
Get connections in this layer.
Returns:
Number of neurons.
- Type
- Number
setInput()
- Source:
Set a layer as an input of this layer. This function vadilate if reshaping input to target shape is achivable.
toJson(opts) → {Object}
- Source:
Export layer as JSON.
Parameters:
Name | Type | Description |
---|---|---|
opts |
Object | Options. |
Returns:
Layer properties as JSON.
- Type
- Object