pytorch
80f59cc6 - Change some py_context_manager_DEPRECATED to py_context_manager (#102643)

Commit
1 year ago
Change some py_context_manager_DEPRECATED to py_context_manager (#102643) I confirmed that there are no usages of these APIs on github code search or internally. There may still be usages (hence the BC-breaking label), but I expect none to very few. There are some leftover py_context_manager_DEPRECATED that will likely stay that way for a while because: - they are used outside of the pytorch repo (`_AutoDispatchBelowAutograd`, `_DisableTorchDispatch`, `_InferenceMode`) - they are high risk (all of the torch_function / torch_dispatch related stuff) - PyTorch requires that the object behaves like a "Python RAII guard" (`_DisableFuncTorch`, `_MultithreadingEnabled`) This is probably the last PR in the context manager cleanup series. Test Plan: - existing tests Pull Request resolved: https://github.com/pytorch/pytorch/pull/102643 Approved by: https://github.com/bdhirsh
Author
Committer
Parents
Loading