Fixes #164932
Summary:
- Update the inherited
Optimizer.load_state_dictexample so generated optimizer docs do not point every optimizer page attorch.optim.SGD. - Keep the example focused on the existing scheduler-before-optimizer load ordering guidance.
Test Plan:
python3 -m py_compile torch/optim/optimizer.pygit diff --check
Pull Request resolved: #185401
Approved by: https://github.com/janeyx99, https://github.com/cyyever
SOCIAL SHARE CARD GENERATOR