take

Function take 

Source
pub fn take<R, T, B, D, I>(
    tensor: &TensorAny<R, T, B, D>,
    indices: I,
    axis: isize,
) -> Tensor<T, B, D>
Expand description

Take elements from an array along an axis.

ยงSee also

Python Array API standard: take