torch.optim.Optimizer.state_dict
- Optimizer.state_dict()
Return the state of the optimizer as a
dict.It contains two entries:
state: a Dict holding current optimization state. Its contentdiffers between optimizer classes, but some common characteristics hold. For example, state is saved per parameter, and the parameter itself is NOT saved. is a Dictionary mapping parameter ids to a Dict with state corresponding to each parameter.