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.