pub struct Scheduled<Opt, V> {
pub optimizer: Opt,
pub schedule: StepDecay<V>,
}Expand description
A learning-rate schedule around an optimizer (C++ StepDecaySchedule as
the LearningRateSchedulePolicy): after each update the network’s
learning rate becomes schedule.step(rate).
Fields§
§optimizer: OptThe optimizer that takes each step.
schedule: StepDecay<V>The schedule, with its step count.
Implementations§
Trait Implementations§
impl<Opt: Copy, V: Copy> Copy for Scheduled<Opt, V>
impl<Opt: Eq, V: Eq> Eq for Scheduled<Opt, V>
impl<Opt: PartialEq, V: PartialEq> StructuralPartialEq for Scheduled<Opt, V>
Auto Trait Implementations§
impl<Opt, V> Freeze for Scheduled<Opt, V>
impl<Opt, V> RefUnwindSafe for Scheduled<Opt, V>where
Opt: RefUnwindSafe,
V: RefUnwindSafe,
impl<Opt, V> Send for Scheduled<Opt, V>
impl<Opt, V> Sync for Scheduled<Opt, V>
impl<Opt, V> Unpin for Scheduled<Opt, V>
impl<Opt, V> UnsafeUnpin for Scheduled<Opt, V>where
Opt: UnsafeUnpin,
V: UnsafeUnpin,
impl<Opt, V> UnwindSafe for Scheduled<Opt, V>where
Opt: UnwindSafe,
V: UnwindSafe,
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