Enum leaf::solver::SolverKind [] [src]

pub enum SolverKind {
    SGD(SGDKind),
}

All available types of solvers.

Variants

SGD

Stochastic Gradient Descent. See SGDKind for all available SGD solvers.

Methods

impl SolverKind

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 SolverKind

fn clone(&self) -> SolverKind

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

impl Copy for SolverKind

impl Debug for SolverKind

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