pub struct GradientStats {
pub global_norm: f64,
pub min_value: f64,
pub max_value: f64,
pub mean_value: f64,
pub num_parameters: usize,
pub num_finite: usize,
pub num_infinite: usize,
pub num_nan: usize,
}Expand description
Gradient statistics for monitoring
Fields§
§global_norm: f64§min_value: f64§max_value: f64§mean_value: f64§num_parameters: usize§num_finite: usize§num_infinite: usize§num_nan: usizeImplementations§
Trait Implementations§
Source§impl Clone for GradientStats
impl Clone for GradientStats
Source§fn clone(&self) -> GradientStats
fn clone(&self) -> GradientStats
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 moreSource§impl Debug for GradientStats
impl Debug for GradientStats
Auto Trait Implementations§
impl Freeze for GradientStats
impl RefUnwindSafe for GradientStats
impl Send for GradientStats
impl Sync for GradientStats
impl Unpin for GradientStats
impl UnwindSafe for GradientStats
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