pytorch/functorch/experimental
rzou 036cda415f Change HigherOrderOperator default namespace from global to 'higher_order' (#103870)
This PR changes the default namespace for higher order operators from the
global namespace (e.g. torch.ops.cond) to `higher_order` (e.g.
torch.ops.higher_order.cond). We don't actually change the namespace
for existing HigherOrderOperators.

The motivation is to stem the bleeding; exposing operators into the global
namespace is a bad idea due to name collision with other user-defined
namespaces.

We will go in and fix the `_deprecated_global_ns` as necessary after this diff.

Differential Revision: [D46809738](https://our.internmc.facebook.com/intern/diff/D46809738/)
Pull Request resolved: https://github.com/pytorch/pytorch/pull/103870
Approved by: https://github.com/ydwu4
2023-06-20 19:10:55 +00:00
..
__init__.py
_cond.py Change HigherOrderOperator default namespace from global to 'higher_order' (#103870) 2023-06-20 19:10:55 +00:00
_map.py Change HigherOrderOperator default namespace from global to 'higher_order' (#103870) 2023-06-20 19:10:55 +00:00
control_flow.py Revert "Make HigherOrderOperator stop appearing like torch.ops.* in FX (#103108)" 2023-06-09 19:31:40 +00:00
ops.py Rename PyOperator to HigherOrderOperator (#97493) 2023-03-24 05:04:02 +00:00