pub trait IntoTensor<B: Backend> {
// Required method
fn into_tensor(self, backend: B) -> Tensor<B>;
}
Expand description
Objects must implement this to be convertible into tensor
Required Methods§
Sourcefn into_tensor(self, backend: B) -> Tensor<B>
fn into_tensor(self, backend: B) -> Tensor<B>
Convert self into tensor