pub struct StageStats {
pub stage_name: String,
pub tensors_processed: usize,
pub tensors_skipped: usize,
pub params_before: usize,
pub nonzero_params_after: usize,
pub memory_before_bytes: usize,
pub memory_after_bytes: usize,
}Expand description
Per-stage compression statistics.
Fields§
§stage_name: StringName of the stage that produced these stats.
tensors_processed: usizeNumber of tensors that were processed by this stage.
tensors_skipped: usizeNumber of tensors skipped (e.g. embedding layers with skip_embedding_layers).
params_before: usizeTotal number of parameters (elements) entering this stage.
nonzero_params_after: usizeNumber of non-zero parameters after this stage.
memory_before_bytes: usizeTotal memory (bytes) of all processed tensors before this stage.
memory_after_bytes: usizeTotal memory (bytes) of all processed tensors after this stage.
Implementations§
Source§impl StageStats
impl StageStats
Trait Implementations§
Source§impl Clone for StageStats
impl Clone for StageStats
Source§fn clone(&self) -> StageStats
fn clone(&self) -> StageStats
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 moreAuto Trait Implementations§
impl Freeze for StageStats
impl RefUnwindSafe for StageStats
impl Send for StageStats
impl Sync for StageStats
impl Unpin for StageStats
impl UnsafeUnpin for StageStats
impl UnwindSafe for StageStats
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> 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