Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix typing error complains due to upstream torch.optimizer decorator …
…typing changes Summary: Due to pytorch/pytorch#144161, the current disabled `state_dict()` and `load_state_dict()` typing starts complains due to the incompatible between `typing.NoReturn` and `None` and `StateDict`. Although `NoReturn` is a better typing for the disabled checkpoint solution, unfortunately this is not feasible due to `torch.optimizer` typing requirement. Differential Revision: D67951563
- Loading branch information