pub struct QuantizationResult {
pub data: Vec<f64>,
pub mode: QuantizationMode,
pub bits: u8,
pub mse: f64,
pub constraints_satisfied: bool,
pub unit_norm_preserved: bool,
}Expand description
Result of quantization operation.
Fields§
§data: Vec<f64>Quantized data
mode: QuantizationModeQuantization mode used
bits: u8Bits per element
mse: f64Mean squared error from original
constraints_satisfied: boolWhether constraints are satisfied
unit_norm_preserved: boolUnit norm preserved (for Polar mode)
Implementations§
Trait Implementations§
Source§impl Clone for QuantizationResult
impl Clone for QuantizationResult
Source§fn clone(&self) -> QuantizationResult
fn clone(&self) -> QuantizationResult
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 moreAuto Trait Implementations§
impl Freeze for QuantizationResult
impl RefUnwindSafe for QuantizationResult
impl Send for QuantizationResult
impl Sync for QuantizationResult
impl Unpin for QuantizationResult
impl UnsafeUnpin for QuantizationResult
impl UnwindSafe for QuantizationResult
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