Method Reshape
Reshape(ReadOnlySpan<int>, bool)
Creates a TensorShape
by duplicating this
and reshaping the dimensions to those given.
If a dimension in the shape array is -1, Sentis infers the value from the size of the TensorShape
and the remaining dimensions. Only one dimension can be -1.
Declaration
public TensorShape Reshape(ReadOnlySpan<int> shape, bool allowZero = false)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlySpan<int> | shape | The new shape as a span of integers. |
bool | allowZero | When the value is |
Returns
Type | Description |
---|---|
TensorShape |