Struct dfdx::optim::AdamConfig
source · [−]Expand description
Configuration of hyperparameters for Adam.
Changing all default parameters:
AdamConfig {
lr: 1e-2,
betas: [0.1, 0.2],
eps: 1e-6,
};
Fields
lr: f32
Learning rate. Defaults to 1e-3
.
betas: [f32; 2]
Betas from Adam paper. Defaults to [0.9, 0.999]
.
eps: f32
Epsilon for numerical stability. Defaults to 1e-8
.
Trait Implementations
sourceimpl Clone for AdamConfig
impl Clone for AdamConfig
sourcefn clone(&self) -> AdamConfig
fn clone(&self) -> AdamConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AdamConfig
impl Debug for AdamConfig
sourceimpl Default for AdamConfig
impl Default for AdamConfig
impl Copy for AdamConfig
Auto Trait Implementations
impl RefUnwindSafe for AdamConfig
impl Send for AdamConfig
impl Sync for AdamConfig
impl Unpin for AdamConfig
impl UnwindSafe for AdamConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more