tensor.stride
Computes the stride of each dimension in the tensor.
Args
self
(@Tensor<T>
) - The input tensor.
Returns
A span of usize representing the stride for each dimension of the tensor.
Examples
Last updated
Computes the stride of each dimension in the tensor.
self
(@Tensor<T>
) - The input tensor.
A span of usize representing the stride for each dimension of the tensor.
Last updated