#[repr(i32)]pub enum LlamaBackendDeviceType {
Cpu = 0,
Gpu = 1,
IntegratedGpu = 2,
Accel = 3,
Meta = 4,
}Expand description
Backend device class (CPU, discrete GPU, integrated GPU, …).
Variants§
Cpu = 0
Host CPU backend.
Gpu = 1
Discrete GPU.
IntegratedGpu = 2
Integrated GPU.
Accel = 3
Accelerator device (e.g. BLAS / Hexagon).
Meta = 4
Meta / placeholder device entry.
Trait Implementations§
Source§impl Clone for LlamaBackendDeviceType
impl Clone for LlamaBackendDeviceType
Source§fn clone(&self) -> LlamaBackendDeviceType
fn clone(&self) -> LlamaBackendDeviceType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LlamaBackendDeviceType
Source§impl Debug for LlamaBackendDeviceType
impl Debug for LlamaBackendDeviceType
impl Eq for LlamaBackendDeviceType
Source§impl From<u32> for LlamaBackendDeviceType
impl From<u32> for LlamaBackendDeviceType
Source§fn from(value: ggml_backend_dev_type) -> Self
fn from(value: ggml_backend_dev_type) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LlamaBackendDeviceType
impl PartialEq for LlamaBackendDeviceType
Source§fn eq(&self, other: &LlamaBackendDeviceType) -> bool
fn eq(&self, other: &LlamaBackendDeviceType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LlamaBackendDeviceType
Auto Trait Implementations§
impl Freeze for LlamaBackendDeviceType
impl RefUnwindSafe for LlamaBackendDeviceType
impl Send for LlamaBackendDeviceType
impl Sync for LlamaBackendDeviceType
impl Unpin for LlamaBackendDeviceType
impl UnsafeUnpin for LlamaBackendDeviceType
impl UnwindSafe for LlamaBackendDeviceType
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