Trait RangesArg

pub trait RangesArg<const D2: usize> {
    // Required method
    fn into_ranges(self, shape: Shape) -> [Range<usize>; D2];
}
Expand description

Trait used for slice arguments

Required Methods§

fn into_ranges(self, shape: Shape) -> [Range<usize>; D2]

Converts into a set of ranges to [Range<usize>; D2] for the tensor.slice() function

Implementations on Foreign Types§

§

impl<const D2: usize, T> RangesArg<D2> for [T; D2]
where T: Into<Slice>,

§

fn into_ranges(self, shape: Shape) -> [Range<usize>; D2]

Implementors§

§

impl<T> RangesArg<1> for T
where T: Into<Slice>,