Skip to content

Commit

Permalink
[pytorch] Update docstring for FSDP.set_state_dict_type (pytorch#103864)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: pytorch#103864

I noticed optim_state_dict_config was missing from the Args section

Test Plan: N/A

Reviewed By: fegin, rohan-varma

Differential Revision: D46670165

fbshipit-source-id: 696fa03463e6bdecdf3ed1c38a75d1713b392f88
  • Loading branch information
daniellepintz authored and facebook-github-bot committed Jun 20, 2023
1 parent 2722c52 commit 8ffbe98
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions torch/distributed/fsdp/fully_sharded_data_parallel.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,8 @@ def set_state_dict_type(
state_dict_type (StateDictType): the desired ``state_dict_type`` to set.
state_dict_config (Optional[StateDictConfig]): the configuration for the
target ``state_dict_type``.
optim_state_dict_config (Optional[OptimStateDictConfig]): the configuration for the optimizer state dict
Returns:
A StateDictSettings that include the previous state_dict type and
configuration for the module.
Expand Down

0 comments on commit 8ffbe98

Please sign in to comment.