pub struct QuantizationStabilityReport {
pub max_absolute_error: f32,
pub mean_squared_error: f32,
pub sqnr_db: f32,
pub psnr_db: f32,
pub rmse: f32,
pub mean_absolute_error: f32,
pub is_stable: bool,
pub recommended_min_bits: u8,
pub suggestions: Vec<String>,
}Expand description
Numerical stability report for quantization operations
Fields§
§max_absolute_error: f32Maximum absolute error observed
mean_squared_error: f32Mean squared error
sqnr_db: f32Signal-to-quantization-noise ratio (SQNR) in dB
psnr_db: f32Peak signal-to-noise ratio (PSNR) in dB
rmse: f32Root mean squared error
mean_absolute_error: f32Mean absolute error
is_stable: boolFlag indicating if the quantization is considered stable
recommended_min_bits: u8Recommended minimum bit width for stable quantization
suggestions: Vec<String>Suggestions for improving stability
Trait Implementations§
Source§impl Clone for QuantizationStabilityReport
impl Clone for QuantizationStabilityReport
Source§fn clone(&self) -> QuantizationStabilityReport
fn clone(&self) -> QuantizationStabilityReport
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 moreSource§impl Debug for QuantizationStabilityReport
impl Debug for QuantizationStabilityReport
Auto Trait Implementations§
impl Freeze for QuantizationStabilityReport
impl RefUnwindSafe for QuantizationStabilityReport
impl Send for QuantizationStabilityReport
impl Sync for QuantizationStabilityReport
impl Unpin for QuantizationStabilityReport
impl UnsafeUnpin for QuantizationStabilityReport
impl UnwindSafe for QuantizationStabilityReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more