pub enum TensorDevice {
Device(i32),
Host,
HostPinned,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for TensorDevice
impl Clone for TensorDevice
Source§fn clone(&self) -> TensorDevice
fn clone(&self) -> TensorDevice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TensorDevice
impl Debug for TensorDevice
Source§impl From<i32> for TensorDevice
impl From<i32> for TensorDevice
Source§impl Hash for TensorDevice
impl Hash for TensorDevice
Source§impl PartialEq for TensorDevice
impl PartialEq for TensorDevice
Source§fn eq(&self, other: &TensorDevice) -> bool
fn eq(&self, other: &TensorDevice) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TensorDevice
impl Eq for TensorDevice
impl StructuralPartialEq for TensorDevice
Auto Trait Implementations§
impl Freeze for TensorDevice
impl RefUnwindSafe for TensorDevice
impl Send for TensorDevice
impl Sync for TensorDevice
impl Unpin for TensorDevice
impl UnsafeUnpin for TensorDevice
impl UnwindSafe for TensorDevice
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more