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 `typing.NoReturn` is a better typing for the disabled checkpoint solution, unfortunately this is not feasible due to `torch.optimizer` typing requirement. Reviewed By: aorenste Differential Revision: D67951563 fbshipit-source-id: aeafb8f71ab5a9e077760d8b884af9584b017d7e
- Loading branch information