Abstract base class for wrapping LibTorch C++ optimizers.
Methods
Method new()
Initializes the optimizer with the specified parameters and defaults.
Usage
OptimizerIgnite$new(params, defaults)Method state_dict()
Returns the state dictionary containing the current state of the optimizer.
The returned list() contains two lists:
param_groups: The parameter groups of the optimizer (lr, ...) as well as to which parameters they are applied (params, integer indices)state: The states of the optimizer. The names are the indices of the parameters to which they belong, converted to character.
Returns
(list())
Method load_state_dict()
Loads the state dictionary into the optimizer.
Arguments
state_dict(
list())
The state dictionary to load into the optimizer.
Method add_param_group()
Adds a new parameter group to the optimizer.
Arguments
param_group(
list())
A parameter group to add to the optimizer. This should contain theparamsto optimize as well as the optimizer options. For all options that are not specified, the defaults are used.