#[repr(i32)]pub enum TensorLocation {
kDEVICE = 0,
kHOST = 1,
}Expand description
TensorLocation
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ExternType for TensorLocation
impl ExternType 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 PartialEq for TensorLocation
impl PartialEq for TensorLocation
impl Eq for TensorLocation
impl StructuralPartialEq for TensorLocation
impl UniquePtrTarget for TensorLocation
impl VectorElement for TensorLocation
impl WeakPtrTarget 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