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]
fn into_ranges(self, shape: Shape) -> [Range<usize>; D2]
Converts into a set of ranges to [Range<usize>; D2]
for the tensor.slice()
function