Trait dfdx::tensor_ops::Select1
source · [−]pub trait Select1<T, const I: isize> {
type Indices: Clone;
fn select(self, indices: &Self::Indices) -> T;
}
Expand description
Select values along a single axis I
resulting in T
. Equivalent
to torch.select
and torch.gather
from pytorch.
Required Associated Types
Required Methods
Select sub elements using Self::Indices. The same element can be selected multiple times depending on Self::Indices.