Trait dfdx::tensor::IntoTensor
source · [−]pub trait IntoTensor: Sized {
type Tensor: TensorCreator;
fn into_tensor(self) -> Self::Tensor;
}
Expand description
Enables converting this value into a Tensor. See tensor().
Required Associated Types
sourcetype Tensor: TensorCreator
type Tensor: TensorCreator
The type of tensor that this value would be converted into.
Required Methods
sourcefn into_tensor(self) -> Self::Tensor
fn into_tensor(self) -> Self::Tensor
Convert this value into a tensor.