pub struct SOFOStats {
pub step: u64,
pub total_forward_passes: u64,
pub avg_curvature_strength: f32,
pub avg_condition_number: f32,
pub curvature_source: CurvatureSource,
pub state_bytes: usize,
pub current_state_mb: f32,
pub num_parameters: usize,
}Expand description
SOFO optimizer statistics for monitoring and analysis
Fields§
§step: u64Current optimization step
total_forward_passes: u64Total forward passes performed
avg_curvature_strength: f32Average curvature strength across parameters
avg_condition_number: f32Average condition number of the diagonal curvature estimates
curvature_source: CurvatureSourceWhich estimator produced the curvature used by the most recent step
state_bytes: usizeMeasured bytes held by SOFO’s own state buffers
current_state_mb: f32state_bytes expressed in MiB
num_parameters: usizeNumber of scalar parameters most recently optimized
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SOFOStats
impl RefUnwindSafe for SOFOStats
impl Send for SOFOStats
impl Sync for SOFOStats
impl Unpin for SOFOStats
impl UnsafeUnpin for SOFOStats
impl UnwindSafe for SOFOStats
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> 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