Optimizer

class dragon.optimizers.Optimizer(**kwargs)[source]

The base class of optimizers.

__init__

Optimizer.__init__(**kwargs)[source]

Create a Optimizer.

Methods

apply_gradients

Optimizer.apply_gradients(grads_and_vars)[source]

Apply the gradients on variables.

Parameters:
  • grads_and_vars (Sequence[Sequence[dragon.Tensor]]) – The sequence of update pair.