Trait tch_tensor_like::TensorLike[][src]

pub trait TensorLike where
    Self: Sized
{ fn f_to_device(&self, device: Device) -> Result<Self, TchError>;
fn f_to_kind(&self, kind: Kind) -> Result<Self, TchError>;
fn shallow_clone(&self) -> Self; fn to_device(&self, device: Device) -> Self { ... }
fn to_kind(&self, kind: Kind) -> Self { ... } }

Required methods

fn f_to_device(&self, device: Device) -> Result<Self, TchError>[src]

fn f_to_kind(&self, kind: Kind) -> Result<Self, TchError>[src]

fn shallow_clone(&self) -> Self[src]

Loading content...

Provided methods

fn to_device(&self, device: Device) -> Self[src]

fn to_kind(&self, kind: Kind) -> Self[src]

Loading content...

Implementations on Foreign Types

impl TensorLike for bool[src]

impl TensorLike for f32[src]

impl TensorLike for f64[src]

impl TensorLike for usize[src]

impl TensorLike for u8[src]

impl TensorLike for u16[src]

impl TensorLike for u32[src]

impl TensorLike for u64[src]

impl TensorLike for u128[src]

impl TensorLike for isize[src]

impl TensorLike for i8[src]

impl TensorLike for i16[src]

impl TensorLike for i32[src]

impl TensorLike for i64[src]

impl TensorLike for i128[src]

impl<T> TensorLike for &T[src]

impl<T> TensorLike for *const T[src]

impl<T> TensorLike for *mut T[src]

impl<T1> TensorLike for (T1,) where
    T1: TensorLike
[src]

impl<T1, T2> TensorLike for (T1, T2) where
    T1: TensorLike,
    T2: TensorLike
[src]

impl<T1, T2, T3> TensorLike for (T1, T2, T3) where
    T1: TensorLike,
    T2: TensorLike,
    T3: TensorLike
[src]

impl<T1, T2, T3, T4> TensorLike for (T1, T2, T3, T4) where
    T1: TensorLike,
    T2: TensorLike,
    T3: TensorLike,
    T4: TensorLike
[src]

impl<T1, T2, T3, T4, T5> TensorLike for (T1, T2, T3, T4, T5) where
    T1: TensorLike,
    T2: TensorLike,
    T3: TensorLike,
    T4: TensorLike,
    T5: TensorLike
[src]

impl TensorLike for Tensor[src]

impl<T> TensorLike for Vec<T> where
    T: TensorLike
[src]

impl<T> TensorLike for LinkedList<T> where
    T: TensorLike
[src]

impl<T> TensorLike for VecDeque<T> where
    T: TensorLike
[src]

impl<K, T> TensorLike for HashMap<K, T> where
    K: Eq + Hash + Clone,
    T: TensorLike
[src]

impl<K, T> TensorLike for BTreeMap<K, T> where
    K: Ord + Clone,
    T: TensorLike
[src]

impl<T> TensorLike for Option<T> where
    T: TensorLike
[src]

Loading content...

Implementors

Loading content...