# torch.optim.Optimizer.state_dict¶

Optimizer.state_dict()[source]

Returns the state of the optimizer as a dict.

It contains two entries:

• state - a dict holding current optimization state. Its content

differs between optimizer classes.

• param_groups - a list containing all parameter groups where each

parameter group is a dict