IntoTensor

Trait IntoTensor 

Source
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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so 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§