torch.optim in the PyTorch documentation (source code)

= torch.optim in the PyTorch documentation
{c}

https://docs.pytorch.org/docs/2.15/optim.html

Pinned PyTorch2.15. Taking an optimization step, optimizer.step() and closure examples; Optimizer base class and state. Gradient calculation and parameter update are separate operations. Existing SGD in the PyTorch documentation source is reused for the no-momentum, zero-weight-decay update formula.

https://docs.pytorch.org/docs/2.15/generated/torch.optim.Optimizer.state_dict.html

Additional locator: PyTorch 2.15, Optimizer.state_dict, state and param_groups; parameter values are omitted, and saved parameter identifiers/order must be matched when restoring state.