TensorInto

Trait TensorInto 

Source
pub trait TensorInto<Into> {
    // Required method
    fn to(self, context: &Context) -> Into;
}

Required Methods§

Source

fn to(self, context: &Context) -> Into

Implementors§

Source§

impl<T: Scalar> TensorInto<Tensor<Cpu<T>, T>> for TensorCpu<T>

Source§

impl<T: Scalar> TensorInto<Tensor<Gpu<ReadWrite>, T>> for TensorGpu<T, ReadWrite>

Available on non-WebAssembly only.
Source§

impl<T: Scalar, K: Kind> TensorInto<Tensor<Gpu<K>, T>> for TensorCpu<T>