Trait RangesArg

Source
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§

Source

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§

Source§

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

Source§

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

Implementors§

Source§

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