pub enum Backend {
Auto,
Cpu,
CpuAccel,
Metal,
Vulkan,
Cuda,
Rocm,
}Expand description
Which compute backend to request when loading a model.
Variants§
Auto
Best available device; CPU is the always-present fallback. The default.
Cpu
Strict CPU (no GPU, no host accelerators) — the determinism choice.
CpuAccel
CPU plus host-memory accelerators (BLAS/AMX) when present.
Metal
Require Metal; errors if this build has no Metal.
Vulkan
Require Vulkan; errors if this build has no Vulkan.
Cuda
Require CUDA; errors if this build has no CUDA.
Rocm
Require ROCm; errors if this build has no ROCm.
Trait Implementations§
impl Copy for Backend
impl Eq for Backend
impl StructuralPartialEq for Backend
Auto Trait Implementations§
impl Freeze for Backend
impl RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl UnsafeUnpin for Backend
impl UnwindSafe for Backend
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