Trait burn::lr_scheduler::LrScheduler
pub trait LrScheduler<B>: Send + Syncwhere
B: Backend,{
type Record: Record<B>;
// Required methods
fn step(&mut self) -> f64;
fn to_record(&self) -> Self::Record;
fn load_record(self, record: Self::Record) -> Self;
}
Expand description
Learning rate scheduler defines how the learning rate will evolve during training.
Required Associated Types§
Required Methods§
fn step(&mut self) -> f64
fn step(&mut self) -> f64
Perform the scheduler step, potentially updating its state, and returning the effective learning rate.
fn load_record(self, record: Self::Record) -> Self
fn load_record(self, record: Self::Record) -> Self
Load the state of the scheduler as a record.
Object Safety§
This trait is not object safe.