pub struct QuantMetrics {
pub original_min: f32,
pub original_max: f32,
pub loss_ratio: f32,
}Expand description
Metrics and debug information for quantization operations
Fields§
§original_min: f32Original minimum value in the embedding
original_max: f32Original maximum value in the embedding
loss_ratio: f32Approximate information loss ratio (0.0 = no loss, 1.0 = complete loss) Calculated based on quantization error
Implementations§
Trait Implementations§
Source§impl Clone for QuantMetrics
impl Clone for QuantMetrics
Source§fn clone(&self) -> QuantMetrics
fn clone(&self) -> QuantMetrics
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 QuantMetrics
impl Debug for QuantMetrics
Source§impl<'de> Deserialize<'de> for QuantMetrics
impl<'de> Deserialize<'de> for QuantMetrics
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
Source§impl PartialEq for QuantMetrics
impl PartialEq for QuantMetrics
Source§impl Serialize for QuantMetrics
impl Serialize for QuantMetrics
impl StructuralPartialEq for QuantMetrics
Auto Trait Implementations§
impl Freeze for QuantMetrics
impl RefUnwindSafe for QuantMetrics
impl Send for QuantMetrics
impl Sync for QuantMetrics
impl Unpin for QuantMetrics
impl UnwindSafe for QuantMetrics
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