pub struct Adam<B: Backend> { /* private fields */ }Expand description
Adam optimizer as described in the paper Adam: A Method for Stochastic Optimization.
Trait Implementations§
source§impl<B: Backend> SimpleOptimizer<B> for Adam<B>
impl<B: Backend> SimpleOptimizer<B> for Adam<B>
§type State<const D: usize> = AdamState<B, D>
type State<const D: usize> = AdamState<B, D>
The state of the optimizer. It also implements record, so that it can be saved.
Auto Trait Implementations§
impl<B> RefUnwindSafe for Adam<B>where <B as Backend>::FloatElem: RefUnwindSafe,
impl<B> Send for Adam<B>
impl<B> Sync for Adam<B>
impl<B> Unpin for Adam<B>where <B as Backend>::FloatElem: Unpin,
impl<B> UnwindSafe for Adam<B>where <B as Backend>::FloatElem: UnwindSafe,
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