mirror of
https://github.com/saymrwulf/pytorch.git
synced 2026-05-14 20:57:59 +00:00
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
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| abstract_impl.py | ||
| autograd.py | ||
| custom_ops.py | ||
| fake_class_registry.py | ||
| infer_schema.py | ||
| simple_registry.py | ||
| utils.py | ||