pub trait Erase {
type Erased: Tensor;
// Required method
fn erase(&self) -> &Self::Erased;
}Expand description
Views a tensor with its configurations and unit discarded.
Contracting tensors of different units gives a quantity whose unit is the product, which is not always one this library names. Generic code that only wants the number contracts the erased views instead.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".