pub enum Quantization {
F32,
I16,
I8,
}Expand description
How the weights are written to a model file.
Variants§
F32
As they are: 4 bytes a weight.
I16
As whole numbers of 2 bytes, times a scale: the largest weight becomes 32,767.
I8
As whole numbers of 1 byte, times a scale: the largest weight becomes 127.
Implementations§
Trait Implementations§
Source§impl Clone for Quantization
impl Clone for Quantization
impl Copy for Quantization
Source§impl Debug for Quantization
impl Debug for Quantization
impl Eq for Quantization
Source§impl PartialEq for Quantization
impl PartialEq for Quantization
impl StructuralPartialEq for Quantization
Auto Trait Implementations§
impl Forget for Quantization
impl Freeze for Quantization
impl Move for Quantization
impl RefUnwindSafe for Quantization
impl Send for Quantization
impl Sync for Quantization
impl Unpin for Quantization
impl UnsafeUnpin for Quantization
impl UnwindSafe for Quantization
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