Trait candle_core::IndexOp

source ·
pub trait IndexOp<T> {
    // Required method
    fn i(&self, index: T) -> Result<Tensor, Error>;
}
Expand description

Trait used to implement multiple signatures for ease of use of the slicing of a tensor

Required Methods§

source

fn i(&self, index: T) -> Result<Tensor, Error>

Returns a slicing iterator which are the chunks of data necessary to reconstruct the desired tensor.

Implementors§

source§

impl<A> IndexOp<(A,)> for Tensor
where A: Into<TensorIndexer>,

source§

impl<A, B> IndexOp<(A, B)> for Tensor
where A: Into<TensorIndexer>, B: Into<TensorIndexer>,

source§

impl<A, B, C> IndexOp<(A, B, C)> for Tensor
where A: Into<TensorIndexer>, B: Into<TensorIndexer>, C: Into<TensorIndexer>,

source§

impl<A, B, C, D> IndexOp<(A, B, C, D)> for Tensor
where A: Into<TensorIndexer>, B: Into<TensorIndexer>, C: Into<TensorIndexer>, D: Into<TensorIndexer>,

source§

impl<A, B, C, D, E> IndexOp<(A, B, C, D, E)> for Tensor
where A: Into<TensorIndexer>, B: Into<TensorIndexer>, C: Into<TensorIndexer>, D: Into<TensorIndexer>, E: Into<TensorIndexer>,

source§

impl<A, B, C, D, E, F> IndexOp<(A, B, C, D, E, F)> for Tensor
where A: Into<TensorIndexer>, B: Into<TensorIndexer>, C: Into<TensorIndexer>, D: Into<TensorIndexer>, E: Into<TensorIndexer>, F: Into<TensorIndexer>,

source§

impl<A, B, C, D, E, F, G> IndexOp<(A, B, C, D, E, F, G)> for Tensor
where A: Into<TensorIndexer>, B: Into<TensorIndexer>, C: Into<TensorIndexer>, D: Into<TensorIndexer>, E: Into<TensorIndexer>, F: Into<TensorIndexer>, G: Into<TensorIndexer>,

source§

impl<T> IndexOp<T> for Tensor
where T: Into<TensorIndexer>,