#[repr(i32)]pub enum TensorLocation {
kDEVICE = 0,
kHOST = 1,
}Expand description
! ! \enum TensorLocation ! ! \brief The location for tensor data storage, device or host. !
Variants§
Trait Implementations§
Source§impl Clone for TensorLocation
impl Clone for TensorLocation
Source§fn clone(&self) -> TensorLocation
fn clone(&self) -> TensorLocation
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 TensorLocation
impl Debug for TensorLocation
Source§impl From<TensorLocation> for TensorLocation
impl From<TensorLocation> for TensorLocation
Source§fn from(value: TensorLocation) -> Self
fn from(value: TensorLocation) -> Self
Converts to this type from the input type.
Source§impl Hash for TensorLocation
impl Hash for TensorLocation
Source§impl Into<TensorLocation> for TensorLocation
impl Into<TensorLocation> for TensorLocation
Source§fn into(self) -> TensorLocation
fn into(self) -> TensorLocation
Converts this type into the (usually inferred) input type.
Source§impl Ord for TensorLocation
impl Ord for TensorLocation
Source§fn cmp(&self, other: &TensorLocation) -> Ordering
fn cmp(&self, other: &TensorLocation) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TensorLocation
impl PartialEq for TensorLocation
Source§fn eq(&self, other: &TensorLocation) -> bool
fn eq(&self, other: &TensorLocation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TensorLocation
impl PartialOrd for TensorLocation
impl Copy for TensorLocation
impl Eq for TensorLocation
impl StructuralPartialEq for TensorLocation
Auto Trait Implementations§
impl Freeze for TensorLocation
impl RefUnwindSafe for TensorLocation
impl Send for TensorLocation
impl Sync for TensorLocation
impl Unpin for TensorLocation
impl UnsafeUnpin for TensorLocation
impl UnwindSafe for TensorLocation
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