tensor.array_feature_extractor
Selects elements of the input tensor based on the indices passed applied to the last tensor axis.
Args
self
(@Tensor<T>
) - The input tensor.indices
(Tensor<usize>
) - Tensor of indices.
Panics
Panics if indices tensor is not 1-dimensional.
Returns
A new Tensor<T>
of the same shape as the input tensor with selected elements based on provided indices.
Example
Last updated