#[repr(C)]pub struct DLDevice {
pub device_type: i32,
pub device_id: i32,
}Expand description
DLPack device descriptor.
Fields§
§device_type: i32Device type (see KDLCPU, KDLCUDA, KDLCUDA_HOST, KDLCUDA_MANAGED,
KDLROCM, KDLROCM_HOST).
device_id: i32Device ID. 0 for CPU, pinned, and managed memory; GPU ordinal for device-local memory.
Auto Trait Implementations§
impl Freeze for DLDevice
impl RefUnwindSafe for DLDevice
impl Send for DLDevice
impl Sync for DLDevice
impl Unpin for DLDevice
impl UnwindSafe for DLDevice
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