pub trait ToTensor<T> {
// Required methods
fn shape(&self) -> Result<Shape>;
fn to_storage(self) -> Result<Storage<T>>;
}pub trait ToTensor<T> {
// Required methods
fn shape(&self) -> Result<Shape>;
fn to_storage(self) -> Result<Storage<T>>;
}