mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 00:21:07 +01:00
For tracing cond/while in eager, we trace the HOP with the eager backend with metadata torchfunction mode enabled. HOPs disallow the mutation that occurs in this torch function mode, so it is not able to be traced. As a result, we use a custom backend which enters this mode for tracing these HOPs. Thanks to @ydwu4 for the help with implementing this Pull Request resolved: https://github.com/pytorch/pytorch/pull/134732 Approved by: https://github.com/ydwu4 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| common.py | ||
| cudagraphs.py | ||
| debugging.py | ||
| distributed.py | ||
| inductor.py | ||
| onnxrt.py | ||
| registry.py | ||
| tensorrt.py | ||
| torchxla.py | ||
| tvm.py | ||