ReshapeTensorExtension<T> extension
- on
-
- Tensor<
T>
- Tensor<
Methods
-
flatten(
) → Tensor< T> -
Available on Tensor<
Return the tensor collapsed into one dimension.T> , provided by the ReshapeTensorExtension extension -
reshape(
List< int> shape) → Tensor<T> -
Available on Tensor<
Returns a reshaped view, if possible. If a dimension is set toT> , provided by the ReshapeTensorExtension extension-1
it is inferred automatically to keep the length constant.