pub enum QuantizationType {
Int8,
Int4,
Binary,
Fixed16,
}Expand description
Quantization type
Variants§
Int8
8-bit signed integer (-128 to 127)
Int4
4-bit signed integer (-8 to 7), packed 2 per byte
Binary
Binary weights (-1 or +1), packed 8 per byte
Fixed16
16-bit fixed point (8.8 format)
Implementations§
Trait Implementations§
Source§impl Clone for QuantizationType
impl Clone for QuantizationType
Source§fn clone(&self) -> QuantizationType
fn clone(&self) -> QuantizationType
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 QuantizationType
Source§impl Debug for QuantizationType
impl Debug for QuantizationType
Source§impl<'de> Deserialize<'de> for QuantizationType
impl<'de> Deserialize<'de> for QuantizationType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for QuantizationType
Source§impl PartialEq for QuantizationType
impl PartialEq for QuantizationType
Source§fn eq(&self, other: &QuantizationType) -> bool
fn eq(&self, other: &QuantizationType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for QuantizationType
impl Serialize for QuantizationType
impl StructuralPartialEq for QuantizationType
Auto Trait Implementations§
impl Freeze for QuantizationType
impl RefUnwindSafe for QuantizationType
impl Send for QuantizationType
impl Sync for QuantizationType
impl Unpin for QuantizationType
impl UnsafeUnpin for QuantizationType
impl UnwindSafe for QuantizationType
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