pub struct AdamFloat {
pub beta1: f64,
pub beta2: f64,
pub epsilon: f64,
/* private fields */
}Expand description
Adam for floating-point networks (C++ AdamOptimizerFloat): the
hyperparameters are f64, as in the C++, cast to the network’s type where
they are used, and from the first training step bias correction divides by
1 - beta^t, with beta^t a running product in f64. The square root is
taken in f64.
Implemented for f32 and f64 networks; needs the std feature (pow
and sqrt from the platform, bit-identical to the C++ on a glibc host) or
libm.
Fields§
§beta1: f64Decay of the first moment (C++ default 0.9).
beta2: f64Decay of the second moment (C++ default 0.999).
epsilon: f64Added to the root of the second moment (C++ default 1e-8).
Implementations§
Trait Implementations§
impl Copy for AdamFloat
impl StructuralPartialEq for AdamFloat
Auto Trait Implementations§
impl Freeze for AdamFloat
impl RefUnwindSafe for AdamFloat
impl Send for AdamFloat
impl Sync for AdamFloat
impl Unpin for AdamFloat
impl UnsafeUnpin for AdamFloat
impl UnwindSafe for AdamFloat
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