Class Reshape
Represents a Reshape
layer. The layer calculates the output tensor by copying the data from the input tensor and using a given shape. The data from the input tensor is unchanged.
Only one of the elements of the shape can be -1. The layer infers the size of this dimension from the remaining dimensions and the length of the input tensor.
Inherited Members
Namespace: Unity.Sentis.Layers
Assembly: solution.dll
Syntax
[Serializable]
public class Reshape : Layer
Constructors
Name | Description |
---|---|
Reshape(string, string, string, bool) | Initializes and returns an instance of |
Fields
Name | Description |
---|---|
allowZero | Whether to handle zeros in the shape like numpy. If the shape has a dimension of size 0 and If the shape has a dimension of size 0 and if |
Methods
Name | Description |
---|---|
Execute(Tensor[], ExecutionContext) | Executes the layer using the operations and variables from the If the layer has more than one output, output tensors are saved to variables. |
ToString() | Returns a string that represents the |