pub struct TensorQuantConfig {
pub bits: u8,
pub group_size: usize,
}Expand description
Quantization parameters for an individual tensor.
Fields§
§bits: u8Bit-width for this tensor (3, 4, 6, or 8).
group_size: usizeNumber of consecutive values sharing one scale/bias pair.
Trait Implementations§
Source§impl Clone for TensorQuantConfig
impl Clone for TensorQuantConfig
Source§fn clone(&self) -> TensorQuantConfig
fn clone(&self) -> TensorQuantConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TensorQuantConfig
impl Debug for TensorQuantConfig
Source§impl<'de> Deserialize<'de> for TensorQuantConfig
impl<'de> Deserialize<'de> for TensorQuantConfig
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
Auto Trait Implementations§
impl Freeze for TensorQuantConfig
impl RefUnwindSafe for TensorQuantConfig
impl Send for TensorQuantConfig
impl Sync for TensorQuantConfig
impl Unpin for TensorQuantConfig
impl UnsafeUnpin for TensorQuantConfig
impl UnwindSafe for TensorQuantConfig
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