#[repr(u32)]pub enum DLDeviceType {
Show 16 variants
kDLCPU = 1,
kDLCUDA = 2,
kDLCUDAHost = 3,
kDLOpenCL = 4,
kDLVulkan = 7,
kDLMetal = 8,
kDLVPI = 9,
kDLROCM = 10,
kDLROCMHost = 11,
kDLExtDev = 12,
kDLCUDAManaged = 13,
kDLOneAPI = 14,
kDLWebGPU = 15,
kDLHexagon = 16,
kDLMAIA = 17,
kDLTrn = 18,
}
Variants§
kDLCPU = 1
kDLCUDA = 2
kDLCUDAHost = 3
kDLOpenCL = 4
kDLVulkan = 7
kDLMetal = 8
kDLVPI = 9
kDLROCM = 10
kDLROCMHost = 11
kDLExtDev = 12
kDLCUDAManaged = 13
kDLOneAPI = 14
kDLWebGPU = 15
kDLHexagon = 16
kDLMAIA = 17
kDLTrn = 18
Trait Implementations§
Source§impl Clone for DLDeviceType
impl Clone for DLDeviceType
Source§fn clone(&self) -> DLDeviceType
fn clone(&self) -> DLDeviceType
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 Debug for DLDeviceType
impl Debug for DLDeviceType
Source§impl PartialEq for DLDeviceType
impl PartialEq for DLDeviceType
impl Copy for DLDeviceType
impl Eq for DLDeviceType
impl StructuralPartialEq for DLDeviceType
Auto Trait Implementations§
impl Freeze for DLDeviceType
impl RefUnwindSafe for DLDeviceType
impl Send for DLDeviceType
impl Sync for DLDeviceType
impl Unpin for DLDeviceType
impl UnwindSafe for DLDeviceType
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