pub struct LinearSchedule {
pub init: f64,
pub end: f64,
pub transition_steps: i32,
}Expand description
init decreasing (or increasing) linearly to end over
transition_steps updates, then constant (optax.linear_schedule).
Fields§
§init: f64The initial value.
end: f64The final value.
transition_steps: i32The number of updates over which the value changes.
Trait Implementations§
Source§impl Clone for LinearSchedule
impl Clone for LinearSchedule
impl Copy for LinearSchedule
Source§impl Debug for LinearSchedule
impl Debug for LinearSchedule
Auto Trait Implementations§
impl Freeze for LinearSchedule
impl RefUnwindSafe for LinearSchedule
impl Send for LinearSchedule
impl Sync for LinearSchedule
impl Unpin for LinearSchedule
impl UnsafeUnpin for LinearSchedule
impl UnwindSafe for LinearSchedule
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