pub struct SizeReport {
pub original_size_mb: f32,
pub quantized_size_mb: f32,
pub compressed_size_mb: f32,
pub reduction_ratio: f32,
pub space_saved_mb: f32,
pub compression_efficiency: f32,
}Expand description
Detailed size analysis report
Fields§
§original_size_mb: f32Original model size in MB (FP32)
quantized_size_mb: f32Quantized model size in MB
compressed_size_mb: f32Compressed quantized model size in MB
reduction_ratio: f32Size reduction ratio (original/quantized)
space_saved_mb: f32Space saved in MB
compression_efficiency: f32Compression efficiency (0.0 to 1.0)
Implementations§
Source§impl SizeReport
impl SizeReport
Sourcepub fn meets_reduction_threshold(&self, min_ratio: f32) -> bool
pub fn meets_reduction_threshold(&self, min_ratio: f32) -> bool
Check if the size reduction meets a minimum threshold
Sourcepub fn space_savings_percentage(&self) -> f32
pub fn space_savings_percentage(&self) -> f32
Get space savings as percentage
Trait Implementations§
Source§impl Clone for SizeReport
impl Clone for SizeReport
Source§fn clone(&self) -> SizeReport
fn clone(&self) -> SizeReport
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 SizeReport
impl RefUnwindSafe for SizeReport
impl Send for SizeReport
impl Sync for SizeReport
impl Unpin for SizeReport
impl UnsafeUnpin for SizeReport
impl UnwindSafe for SizeReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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