tensor.at
tensor.at
Retrieves the value at the specified indices of a Tensor.
Args
self
(@Tensor<T>
) - The input tensor.indices
(Span<usize>
) - The indices to access element of the Tensor.
Panics
Panics if the number of indices provided don't match the number of dimensions in the tensor.
Returns
The T
value at the specified indices.
Examples
Last updated