pub struct Sgd<B: Backend> { /* private fields */ }Expand description
Optimizer that implements stochastic gradient descent with momentum.
Momentum is optional and can be configured.
Trait Implementations§
source§impl<B: Backend> SimpleOptimizer<B> for Sgd<B>
 
impl<B: Backend> SimpleOptimizer<B> for Sgd<B>
§type State<const D: usize> = SgdState<B, D>
 
type State<const D: usize> = SgdState<B, D>
The state of the optimizer. It also implements record, so that it can be saved.
Auto Trait Implementations§
impl<B> RefUnwindSafe for Sgd<B>where <B as Backend>::FloatElem: RefUnwindSafe,
impl<B> Send for Sgd<B>
impl<B> Sync for Sgd<B>
impl<B> Unpin for Sgd<B>where <B as Backend>::FloatElem: Unpin,
impl<B> UnwindSafe for Sgd<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