pub struct QuantizationHonesty {
pub error: f32,
pub expected_error: f32,
pub ratio: f32,
pub is_honest: bool,
pub should_escalate: bool,
pub sample_count: usize,
}Expand description
Quantization honesty result
Fields§
§error: f32Actual error measured
expected_error: f32Expected error for this precision lane
ratio: f32Ratio of actual to expected (>1 = worse than expected)
is_honest: boolIs the quantization honest (within 2x expected)?
should_escalate: boolShould we escalate to higher precision?
sample_count: usizeNumber of samples in this measurement
Trait Implementations§
Source§impl Clone for QuantizationHonesty
impl Clone for QuantizationHonesty
Source§fn clone(&self) -> QuantizationHonesty
fn clone(&self) -> QuantizationHonesty
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 QuantizationHonesty
impl Debug for QuantizationHonesty
impl Copy for QuantizationHonesty
Auto Trait Implementations§
impl Freeze for QuantizationHonesty
impl RefUnwindSafe for QuantizationHonesty
impl Send for QuantizationHonesty
impl Sync for QuantizationHonesty
impl Unpin for QuantizationHonesty
impl UnwindSafe for QuantizationHonesty
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