Trait tch_tensor_like::TensorLike [−][src]
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]
Provided methods
Loading content...Implementations on Foreign Types
impl TensorLike for bool
[src]
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]
impl TensorLike for f32
[src]
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]
impl TensorLike for f64
[src]
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]
impl TensorLike for usize
[src]
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]
impl TensorLike for u8
[src]
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]
impl TensorLike for u16
[src]
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]
impl TensorLike for u32
[src]
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]
impl TensorLike for u64
[src]
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]
impl TensorLike for u128
[src]
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]
impl TensorLike for isize
[src]
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]
impl TensorLike for i8
[src]
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]
impl TensorLike for i16
[src]
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]
impl TensorLike for i32
[src]
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]
impl TensorLike for i64
[src]
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]
impl TensorLike for i128
[src]
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]
impl<T> TensorLike for &T
[src]
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]
impl<T> TensorLike for *const T
[src]
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]
impl<T> TensorLike for *mut T
[src]
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]
impl<T1> TensorLike for (T1,) where
T1: TensorLike,
[src]
T1: TensorLike,
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]
impl<T1, T2> TensorLike for (T1, T2) where
T1: TensorLike,
T2: TensorLike,
[src]
T1: TensorLike,
T2: TensorLike,
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]
impl<T1, T2, T3> TensorLike for (T1, T2, T3) where
T1: TensorLike,
T2: TensorLike,
T3: TensorLike,
[src]
T1: TensorLike,
T2: TensorLike,
T3: TensorLike,
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]
impl<T1, T2, T3, T4> TensorLike for (T1, T2, T3, T4) where
T1: TensorLike,
T2: TensorLike,
T3: TensorLike,
T4: TensorLike,
[src]
T1: TensorLike,
T2: TensorLike,
T3: TensorLike,
T4: TensorLike,
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]
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]
T1: TensorLike,
T2: TensorLike,
T3: TensorLike,
T4: TensorLike,
T5: TensorLike,
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]
impl TensorLike for Tensor
[src]
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]
impl<T> TensorLike for Vec<T> where
T: TensorLike,
[src]
T: TensorLike,
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]
impl<T> TensorLike for LinkedList<T> where
T: TensorLike,
[src]
T: TensorLike,
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]
impl<T> TensorLike for VecDeque<T> where
T: TensorLike,
[src]
T: TensorLike,
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]
impl<K, T> TensorLike for HashMap<K, T> where
K: Eq + Hash + Clone,
T: TensorLike,
[src]
K: Eq + Hash + Clone,
T: TensorLike,
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]
impl<K, T> TensorLike for BTreeMap<K, T> where
K: Ord + Clone,
T: TensorLike,
[src]
K: Ord + Clone,
T: TensorLike,
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]
impl<T> TensorLike for Option<T> where
T: TensorLike,
[src]
T: TensorLike,