pub struct ParameterStats {
pub count: usize,
pub mean: f64,
pub std: f64,
pub min: f64,
pub max: f64,
pub sparsity: f64,
}Expand description
Model parameter statistics for a single layer or the entire model.
Fields§
§count: usizeNumber of parameters
mean: f64Mean of parameter values
std: f64Standard deviation of parameter values
min: f64Minimum parameter value
max: f64Maximum parameter value
sparsity: f64Percentage of zero parameters
Implementations§
Trait Implementations§
Source§impl Clone for ParameterStats
impl Clone for ParameterStats
Source§fn clone(&self) -> ParameterStats
fn clone(&self) -> ParameterStats
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 ParameterStats
impl RefUnwindSafe for ParameterStats
impl Send for ParameterStats
impl Sync for ParameterStats
impl Unpin for ParameterStats
impl UnwindSafe for ParameterStats
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