Skip to content

Commit

Permalink
[pytorch] Small fix to docstring of FSDP.optim_state_dict_to_load (#1…
Browse files Browse the repository at this point in the history
…08383)

Summary: Fix ordering of args in docstring

Test Plan: N/A

Differential Revision: D48889668

Pull Request resolved: #108383
Approved by: https://github.com/fegin, https://github.com/awgu, https://github.com/wz337
  • Loading branch information
daniellepintz authored and pytorchmergebot committed Sep 5, 2023
1 parent 0ef2556 commit b2c6383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch/distributed/fsdp/fully_sharded_data_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -1875,7 +1875,7 @@ def optim_state_dict_to_load(
>>> )
>>> model.load_state_dict(state_dict)
>>> optim_state_dict = FSDP.optim_state_dict_to_load(
>>> optim_state_dict, model, optim
>>> model, optim, optim_state_dict
>>> )
>>> optim.load_state_dict(optim_state_dict)
Expand Down

0 comments on commit b2c6383

Please sign in to comment.