pub struct ForwardModeStats {
pub total_forward_passes: u64,
pub total_oracle_time: Duration,
}Expand description
Counters for the gradient-oracle evaluations SOFO actually performed.
Every field here is measured: total_forward_passes is incremented once per
real oracle call, and total_oracle_time accumulates the wall-clock time those
calls took. Nothing is modelled or assumed.
Fields§
§total_forward_passes: u64Total gradient-oracle evaluations performed (two per Hutchinson probe).
total_oracle_time: DurationAccumulated wall-clock time spent inside the gradient oracle.
Implementations§
Source§impl ForwardModeStats
impl ForwardModeStats
Sourcepub fn avg_forward_time(&self) -> Option<Duration>
pub fn avg_forward_time(&self) -> Option<Duration>
Mean wall-clock time per oracle evaluation, or None if none were performed.
Trait Implementations§
Source§impl Clone for ForwardModeStats
impl Clone for ForwardModeStats
Source§fn clone(&self) -> ForwardModeStats
fn clone(&self) -> ForwardModeStats
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 ForwardModeStats
impl Debug for ForwardModeStats
Source§impl Default for ForwardModeStats
impl Default for ForwardModeStats
Source§fn default() -> ForwardModeStats
fn default() -> ForwardModeStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ForwardModeStats
impl RefUnwindSafe for ForwardModeStats
impl Send for ForwardModeStats
impl Sync for ForwardModeStats
impl Unpin for ForwardModeStats
impl UnsafeUnpin for ForwardModeStats
impl UnwindSafe for ForwardModeStats
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