pub struct CosineSchedulerConfig {
pub lr_init: f64,
pub lr_min: f64,
pub warmup_steps: usize,
pub total_steps: usize,
}Expand description
Cosine annealing learning rate scheduler configuration
Fields§
§lr_init: f64Initial learning rate
lr_min: f64Minimum learning rate (at end of schedule)
warmup_steps: usizeNumber of warmup steps
total_steps: usizeTotal number of training steps
Trait Implementations§
Source§impl Clone for CosineSchedulerConfig
impl Clone for CosineSchedulerConfig
Source§fn clone(&self) -> CosineSchedulerConfig
fn clone(&self) -> CosineSchedulerConfig
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 CosineSchedulerConfig
impl Debug for CosineSchedulerConfig
Auto Trait Implementations§
impl Freeze for CosineSchedulerConfig
impl RefUnwindSafe for CosineSchedulerConfig
impl Send for CosineSchedulerConfig
impl Sync for CosineSchedulerConfig
impl Unpin for CosineSchedulerConfig
impl UnsafeUnpin for CosineSchedulerConfig
impl UnwindSafe for CosineSchedulerConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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