pub struct ConstantLr {
pub lr: f64,
}Expand description
§Constant Learning Rate Scheduler.
Simply returns a fixed learning rate for all steps. Useful for simple experiments or when learning rate scheduling is not needed.
Fields§
§lr: f64Implementations§
Source§impl ConstantLr
impl ConstantLr
Source§impl ConstantLr
impl ConstantLr
Trait Implementations§
Source§impl Clone for ConstantLr
impl Clone for ConstantLr
Source§impl Config for ConstantLr
impl Config for ConstantLr
§fn load_binary(data: &[u8]) -> Result<Self, ConfigError>
fn load_binary(data: &[u8]) -> Result<Self, ConfigError>
Loads the configuration from a binary buffer. Read more
Source§impl Debug for ConstantLr
impl Debug for ConstantLr
Source§impl<'de> Deserialize<'de> for ConstantLr
impl<'de> Deserialize<'de> for ConstantLr
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ConstantLr
impl Display for ConstantLr
Auto Trait Implementations§
impl Freeze for ConstantLr
impl RefUnwindSafe for ConstantLr
impl Send for ConstantLr
impl Sync for ConstantLr
impl Unpin for ConstantLr
impl UnsafeUnpin for ConstantLr
impl UnwindSafe for ConstantLr
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