pytorch/torch/distributed/algorithms
Xuehai Pan 67ef2683d9 [BE] wrap deprecated function/class with typing_extensions.deprecated (#127689)
Use `typing_extensions.deprecated` for deprecation annotation if possible. Otherwise, add `category=FutureWarning` to `warnings.warn("message")` if the category is missing.

Note that only warnings that their messages contain `[Dd]eprecat(ed|ion)` are updated in this PR.

Resolves #126888

- #126888

This PR is split from PR #126898.

- #126898

------

Pull Request resolved: https://github.com/pytorch/pytorch/pull/127689
Approved by: https://github.com/Skylion007
2024-06-02 12:30:43 +00:00
..
_checkpoint [BE] wrap deprecated function/class with typing_extensions.deprecated (#127689) 2024-06-02 12:30:43 +00:00
_comm_hooks Fix stream type to generic in comms default hooks (#120069) 2024-05-27 10:27:30 +00:00
_optimizer_overlap
_quantization
ddp_comm_hooks Revert "[BE] wrap deprecated function/class with typing_extensions.deprecated (#126898)" 2024-05-31 19:47:24 +00:00
model_averaging Docs: fix docstring errors in model_averaging (#117038) 2024-01-18 04:12:51 +00:00
__init__.py
join.py