Struct juice::solver::Solver[][src]

pub struct Solver<SolverB, B> where
    SolverB: IBackend + SolverOps<f32>,
    B: IBackend + LayerOps<f32>, 
{ pub worker: Box<dyn ISolver<SolverB, B>>, // some fields omitted }
Expand description

Solver that optimizes a [Layer][1] with a given objective. [1]: ../layer/index.html

Fields

worker: Box<dyn ISolver<SolverB, B>>

The implementation of the Solver

Implementations

Create Solver from [SolverConfig][1] [1]: ./struct.SolverConfig.html

This is the preferred method to create a Solver for training a neural network.

Train the network with one minibatch

Returns the network trained by the solver.

This is the recommended method to get a usable trained network.

Returns the network trained by the solver.

This is the recommended method to get a trained network, if you want to alter the network. Keep in mind that altering the network might render the solver unusable and continuing training the network with it will yield unexpected results.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.