Trait tract_core::prelude::IntoTensor[][src]

pub trait IntoTensor {
    fn into_tensor(self) -> Tensor;
}
Expand description

Convenient conversion to Tensor.

Required methods

fn into_tensor(self) -> Tensor[src]

Expand description

Convert Self to a Tensor.

May perform a copy

Implementors

impl IntoTensor for Arc<Tensor>[src]

pub fn into_tensor(self) -> Tensor[src]

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

pub fn into_tensor(self) -> Tensor[src]