#[repr(i8)]pub enum ET_DeviceType {
ET_DeviceType_CPU = 0,
ET_DeviceType_CUDA = 1,
}Expand description
Represents the type of compute device. Note: ExecuTorch Device is distinct from PyTorch Device.
Variants§
Trait Implementations§
Source§impl Clone for ET_DeviceType
impl Clone for ET_DeviceType
impl Copy for ET_DeviceType
Source§impl Debug for ET_DeviceType
impl Debug for ET_DeviceType
impl Eq for ET_DeviceType
Source§impl Hash for ET_DeviceType
impl Hash for ET_DeviceType
Source§impl PartialEq for ET_DeviceType
impl PartialEq for ET_DeviceType
impl StructuralPartialEq for ET_DeviceType
Auto Trait Implementations§
impl Freeze for ET_DeviceType
impl RefUnwindSafe for ET_DeviceType
impl Send for ET_DeviceType
impl Sync for ET_DeviceType
impl Unpin for ET_DeviceType
impl UnsafeUnpin for ET_DeviceType
impl UnwindSafe for ET_DeviceType
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