pub struct CompressionAnalyzer { /* private fields */ }
Expand description
Model compression analyzer
Implementations§
Source§impl CompressionAnalyzer
impl CompressionAnalyzer
Sourcepub fn set_compressed_size(&mut self, size: usize)
pub fn set_compressed_size(&mut self, size: usize)
Update compressed model size
Sourcepub fn update_speed_metrics(&mut self, metrics: SpeedMetrics)
pub fn update_speed_metrics(&mut self, metrics: SpeedMetrics)
Update speed metrics
Sourcepub fn update_accuracy_metrics(&mut self, metrics: AccuracyMetrics)
pub fn update_accuracy_metrics(&mut self, metrics: AccuracyMetrics)
Update accuracy metrics
Sourcepub fn get_compression_ratio(&self) -> f64
pub fn get_compression_ratio(&self) -> f64
Get compression ratio
Sourcepub fn generate_report(&self) -> CompressionReport
pub fn generate_report(&self) -> CompressionReport
Get comprehensive analysis report
Auto Trait Implementations§
impl Freeze for CompressionAnalyzer
impl RefUnwindSafe for CompressionAnalyzer
impl Send for CompressionAnalyzer
impl Sync for CompressionAnalyzer
impl Unpin for CompressionAnalyzer
impl UnwindSafe for CompressionAnalyzer
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> 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