pub struct StepLR { /* private fields */ }Expand description
Step-decay learning rate scheduler.
Decays the learning rate by gamma every step_size steps:
lr = base_lr * gamma^(step / step_size)
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StepLR
impl RefUnwindSafe for StepLR
impl Send for StepLR
impl Sync for StepLR
impl Unpin for StepLR
impl UnsafeUnpin for StepLR
impl UnwindSafe for StepLR
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