pub trait TensorSlice {
// Required methods
fn shaped_bounds(
&self,
shape: Shape,
) -> Result<(ShapedIndex, ShapedIndex), TensorError>;
fn linear_bounds(&self, shape: Shape) -> Result<(usize, usize), TensorError>;
}pub trait TensorSlice {
// Required methods
fn shaped_bounds(
&self,
shape: Shape,
) -> Result<(ShapedIndex, ShapedIndex), TensorError>;
fn linear_bounds(&self, shape: Shape) -> Result<(usize, usize), TensorError>;
}