Struct dfdx::tensor_ops::RMSpropConfig
source · pub struct RMSpropConfig {
pub lr: f64,
pub alpha: f64,
pub eps: f64,
pub momentum: Option<f64>,
pub centered: bool,
pub weight_decay: Option<WeightDecay>,
}
Expand description
Configuration of hyperparameters for crate::optim::RMSprop.
Fields§
§lr: f64
Learning rate. Defaults to 1e-2
.
alpha: f64
Value for exponential moving average. Defaults to 0.9
.
eps: f64
Epsilon for stability. Defaults to 1e-8
.
momentum: Option<f64>
Optional momentum. Defaults to None
.
centered: bool
Whether the avg should be centered by the grad’s avg value.
Defaults to false
.
weight_decay: Option<WeightDecay>
Optional weight decay. Defaults to None
.
Implementations§
Trait Implementations§
source§impl Clone for RMSpropConfig
impl Clone for RMSpropConfig
source§fn clone(&self) -> RMSpropConfig
fn clone(&self) -> RMSpropConfig
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RMSpropConfig
impl Debug for RMSpropConfig
source§impl Default for RMSpropConfig
impl Default for RMSpropConfig
impl Copy for RMSpropConfig
Auto Trait Implementations§
impl RefUnwindSafe for RMSpropConfig
impl Send for RMSpropConfig
impl Sync for RMSpropConfig
impl Unpin for RMSpropConfig
impl UnwindSafe for RMSpropConfig
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