#[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 · 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 Hash for TensorLocation
impl Hash for TensorLocation
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 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