Enum leaf::solver::SGDKind [] [src]

pub enum SGDKind {
    Momentum,
}

All available types of Stochastic Gradient Descent solvers.

Variants

Momentum

Stochastic Gradient Descent with Momentum. See [implementation][1] [1] ../solvers/

Methods

impl SGDKind

fn with_config<B: IBackend + SolverOps<f32> + 'static, NetB: IBackend + LayerOps<f32> + 'static>(&self, backend: Rc<B>, config: &SolverConfig) -> Box<ISolver<B, NetB>>

Create a Solver of the specified kind with the supplied SolverConfig.

Trait Implementations

Derived Implementations

impl Clone for SGDKind

fn clone(&self) -> SGDKind

1.0.0fn clone_from(&mut self, source: &Self)

impl Copy for SGDKind

impl Debug for SGDKind

fn fmt(&self, __arg_0: &mut Formatter) -> Result