pub enum CheckpointTrigger {
StepInterval {
every_n_steps: u64,
},
LossImprovement {
min_delta: f64,
},
TickInterval {
every_n_ticks: u64,
},
}Expand description
Specifies the condition under which an automatic checkpoint save is triggered.
Variants§
StepInterval
Trigger every every_n_steps training steps.
LossImprovement
Trigger when the loss improves (decreases) by at least min_delta.
TickInterval
Trigger every every_n_ticks monotonic ticks.
Trait Implementations§
Source§impl Clone for CheckpointTrigger
impl Clone for CheckpointTrigger
Source§fn clone(&self) -> CheckpointTrigger
fn clone(&self) -> CheckpointTrigger
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 CheckpointTrigger
impl Debug for CheckpointTrigger
Source§impl PartialEq for CheckpointTrigger
impl PartialEq for CheckpointTrigger
Source§fn eq(&self, other: &CheckpointTrigger) -> bool
fn eq(&self, other: &CheckpointTrigger) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CheckpointTrigger
Auto Trait Implementations§
impl Freeze for CheckpointTrigger
impl RefUnwindSafe for CheckpointTrigger
impl Send for CheckpointTrigger
impl Sync for CheckpointTrigger
impl Unpin for CheckpointTrigger
impl UnsafeUnpin for CheckpointTrigger
impl UnwindSafe for CheckpointTrigger
Blanket Implementations§
impl<T> Allocation for T
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