LearningRate

Type Alias LearningRate 

Source
pub type LearningRate = f64;
Expand description

Type alias for the learning rate.

LearningRate also implements learning rate scheduler so it can be used for constant learning rate.

Trait Implementations§

Source§

impl LrScheduler for LearningRate

Available on crate feature std only.
Source§

type Record<B: Backend> = ()

Scheduler associative type to be used when saving and loading the state.
Source§

fn step(&mut self) -> LearningRate

Perform the scheduler step, potentially updating its state, and returning the effective learning rate.
Source§

fn to_record<B: Backend>(&self) -> Self::Record<B>

Get the current state of the scheduler as a record.
Source§

fn load_record<B: Backend>(self, _record: Self::Record<B>) -> Self

Load the state of the scheduler as a record.