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

Convenient conversion to Tensor.

Required Methods§

source

fn into_tensor(self) -> Tensor

Convert Self to a Tensor.

May perform a copy

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl IntoTensor for Arc<Tensor>

source§

impl<D: Dimension, T: Datum> IntoTensor for Array<T, D>

Implementors§