pytorch/torch/_library
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
..
__init__.py Add register_autograd to register backward formulas for custom ops (#123110) 2024-04-05 22:03:47 +00:00
abstract_impl.py [BE] wrap deprecated function/class with typing_extensions.deprecated (#127689) 2024-06-02 12:30:43 +00:00
autograd.py [custom_op] setup_context fills in default values (#124852) 2024-04-25 04:22:01 +00:00
custom_ops.py Inductor respects strides for custom ops by default (#126986) 2024-05-24 11:11:18 +00:00
fake_class_registry.py Fix documentation for register_fake_class (#126422) 2024-05-17 00:45:21 +00:00
infer_schema.py [custom_op] fix schema inference for kwarg-only args (#124637) 2024-04-25 01:51:02 +00:00
simple_registry.py Rename impl_abstract to register_fake, part 1/2 (#123937) 2024-04-17 12:46:01 +00:00
utils.py [custom_op] setup_context fills in default values (#124852) 2024-04-25 04:22:01 +00:00