pub trait TensorExt: Sized {
// Required method
fn shape(&self) -> Shape;
// Provided method
fn check_shape(&self, shape: Shape) -> Result<(), TensorError> { ... }
}Required Methods§
Provided Methods§
fn check_shape(&self, shape: Shape) -> Result<(), TensorError>
Object Safety§
This trait is not object safe.