mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
Top-level namespaces are more convenient for out-of-tree device extensions.
For example, now we have a patch for it in `torch_npu`:
98c50ced16/codegen/gen_backend_stubs.py (L772-L778)
```python
JIT_TO_CPP_DEFAULT["contiguous_format"] = "c10::MemoryFormat::Contiguous"
```
Pull Request resolved: https://github.com/pytorch/pytorch/pull/131622
Approved by: https://github.com/zou3519