Expand description
\brief A Device for Tensor and operator.
Fields
device_type: u32
\brief The device type used in the device.
device_id: i32
\brief The device index. For vanilla CPU memory, pinned memory, or managed memory, this is set to 0.
Trait Implementations
impl Copy for DLDevice
impl Eq for DLDevice
impl StructuralEq for DLDevice
impl StructuralPartialEq for DLDevice
Auto Trait Implementations
impl RefUnwindSafe for DLDevice
impl Send for DLDevice
impl Sync for DLDevice
impl Unpin for DLDevice
impl UnwindSafe for DLDevice
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more