pub struct HistoryReport {
pub num_steps: usize,
pub min: f64,
pub max: f64,
pub mean: f64,
pub num_spikes: usize,
pub all_non_negative: bool,
pub clipping_non_expansive: bool,
pub max_exceeds_cap: bool,
}Expand description
Aggregated report over a full history of per-step grad-norms.
Fields§
§num_steps: usize§min: f64§max: f64§mean: f64§num_spikes: usize§all_non_negative: bool§clipping_non_expansive: bool§max_exceeds_cap: boolTrait Implementations§
Source§impl Clone for HistoryReport
impl Clone for HistoryReport
Source§fn clone(&self) -> HistoryReport
fn clone(&self) -> HistoryReport
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 moreSource§impl Debug for HistoryReport
impl Debug for HistoryReport
Source§impl PartialEq for HistoryReport
impl PartialEq for HistoryReport
impl StructuralPartialEq for HistoryReport
Auto Trait Implementations§
impl Freeze for HistoryReport
impl RefUnwindSafe for HistoryReport
impl Send for HistoryReport
impl Sync for HistoryReport
impl Unpin for HistoryReport
impl UnsafeUnpin for HistoryReport
impl UnwindSafe for HistoryReport
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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