Struct primitiv::optimizers::MomentumSGD [] [src]

pub struct MomentumSGD { /* fields omitted */ }

Stochastic gradient descent with momentum.

Methods

impl MomentumSGD
[src]

[src]

Creates a new MomentumSGD object.

Trait Implementations

impl Debug for MomentumSGD
[src]

[src]

Formats the value using the given formatter. Read more

impl Wrap<primitivOptimizer_t> for MomentumSGD
[src]

impl Drop for MomentumSGD
[src]

[src]

Executes the destructor for this type. Read more

impl Optimizer for MomentumSGD
[src]

[src]

Loads configurations from a file.

[src]

Saves current configurations to a file.

[src]

Retrieves current epoch.

[src]

Sets current epoch.

[src]

Retrieves current learning rate scaling factor.

[src]

Sets learning rate scaling factor.

[src]

Retrieves current L2 decay strength.

[src]

Sets L2 decay strength.

[src]

Retrieves current gradient clipping threshold.

[src]

Sets gradient clipping threshold.

[src]

Registers a parameter.

[src]

Registers multiple parameters.

[src]

Registers a model.

[src]

Registers multiple models.

[src]

Resets all gradients of registered parameters.

[src]

Updates parameter values.

[src]

Gets a configuration value.

[src]

Sets a configuration value.

[src]

Gets a configuration value.

[src]

Sets a configuration value.

impl Default for MomentumSGD
[src]

[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl !Send for MomentumSGD

impl !Sync for MomentumSGD