pub trait IntoTensor: Sized {
    // Required method
    fn into_tensor(self) -> Tensor;
}
Expand description

Convenient conversion to Tensor.

Required Methods§

fn into_tensor(self) -> Tensor

Convert Self to a Tensor.

May perform a copy

Implementors§

§

impl IntoTensor for TValue

§

impl IntoTensor for Arc<Tensor>

§

impl IntoTensor for Tensor

§

impl<D, T> IntoTensor for ArrayBase<OwnedRepr<T>, D>where D: Dimension, T: Datum,