tensor.unravel_index
Converts a one-dimensional index to a multi-dimensional index.
Args
self
(@Tensor<T>
) - The input tensor.indices
(Span<usize>
) - The index to unravel.
Panics
Panics if the index is out of bounds of the Tensor shape.
Returns
The unraveled indices corresponding to the given index.
Examples
Last updated
Was this helpful?