#[repr(u16)]pub enum ComputeUnits {
Cpu = 1,
CpuAndGpu = 2,
CpuAndNeuralEngine = 3,
All = 4,
}Expand description
Hardware classes the inference runtime may use.
Variants§
Cpu = 1
CPU execution only.
CpuAndGpu = 2
CPU and GPU execution.
CpuAndNeuralEngine = 3
CPU and Neural Engine execution.
All = 4
Every compute unit available to the runtime.
Trait Implementations§
Source§impl Clone for ComputeUnits
impl Clone for ComputeUnits
impl Copy for ComputeUnits
Source§impl Debug for ComputeUnits
impl Debug for ComputeUnits
impl Eq for ComputeUnits
Source§impl PartialEq for ComputeUnits
impl PartialEq for ComputeUnits
impl StructuralPartialEq for ComputeUnits
Auto Trait Implementations§
impl Freeze for ComputeUnits
impl RefUnwindSafe for ComputeUnits
impl Send for ComputeUnits
impl Sync for ComputeUnits
impl Unpin for ComputeUnits
impl UnsafeUnpin for ComputeUnits
impl UnwindSafe for ComputeUnits
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