#[repr(u32)]pub enum GGMLType {
F32 = 0,
F16 = 1,
Q8_0 = 8,
BF16 = 30,
}Expand description
GGML tensor data types used in GGUF files. Values match the ggml_type enum in ggml.h.
Variants§
F32 = 0
F16 = 1
Q8_0 = 8
Q8_0: blocks of 32 × i8 with a shared f16 scale (34 bytes/block).
BF16 = 30
Implementations§
Trait Implementations§
impl Copy for GGMLType
impl Eq for GGMLType
impl StructuralPartialEq for GGMLType
Auto Trait Implementations§
impl Freeze for GGMLType
impl RefUnwindSafe for GGMLType
impl Send for GGMLType
impl Sync for GGMLType
impl Unpin for GGMLType
impl UnsafeUnpin for GGMLType
impl UnwindSafe for GGMLType
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