Realm

oa::ml::optim::GradScalerState

Resume-relevant GradScaler state: the dynamic scale and the growth counter tracking consecutive finite steps. Configuration factors are construction-time constants and do not participate.

StRust public API

Declaration

pub struct GradScalerState { pub scale: f32, pub growth_tracker: u64, }
Public Rust declaration.

Public Methods

fn clone(&self) -> GradScalerState
fn fmt(&self, f: &mut Formatter<'_>) -> Result
fn eq(&self, other: &GradScalerState) -> bool

Public Data Members

scalef32field
growth_trackeru64field

Public Method Documentation

fn clone( &self ) -> GradScalerState
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
fn eq( &self, other: &GradScalerState ) -> bool
No public source comment is attached to this declaration.