pub struct QuantizationProgressTracker { /* private fields */ }Expand description
Comprehensive quantization progress tracking system Replaces verbose iteration logs with clean, meaningful progress indicators
Implementations§
Source§impl QuantizationProgressTracker
impl QuantizationProgressTracker
pub fn new(verbosity: VerbosityLevel) -> Self
Sourcepub fn start_phase(
&mut self,
phase: QuantizationPhase,
max_iterations: Option<u64>,
)
pub fn start_phase( &mut self, phase: QuantizationPhase, max_iterations: Option<u64>, )
Start a new quantization phase
Sourcepub fn update_iteration(
&mut self,
iteration: u64,
metrics: Option<&QualityMetrics>,
)
pub fn update_iteration( &mut self, iteration: u64, metrics: Option<&QualityMetrics>, )
Update iteration progress within current phase
Sourcepub fn complete_phase(&mut self)
pub fn complete_phase(&mut self)
Complete current phase
Sourcepub fn set_verbosity(&mut self, level: VerbosityLevel)
pub fn set_verbosity(&mut self, level: VerbosityLevel)
Set verbosity level
Sourcepub fn should_log_iteration(&self, iteration: u64) -> bool
pub fn should_log_iteration(&self, iteration: u64) -> bool
Check if we should show detailed output
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QuantizationProgressTracker
impl RefUnwindSafe for QuantizationProgressTracker
impl Send for QuantizationProgressTracker
impl Sync for QuantizationProgressTracker
impl Unpin for QuantizationProgressTracker
impl UnsafeUnpin for QuantizationProgressTracker
impl UnwindSafe for QuantizationProgressTracker
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<T> ErasedDestructor for Twhere
T: 'static,
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