pytorch/docs
Elias Ellison 0d7be81c9c [JIT] Add Context Manager to force strict fusion
Fixes https://github.com/pytorch/pytorch/issues/75464 Adds a context manager that will throw if the ops in the context are not fused.

API is :
```
with torch.jit.strict_fusion():
    ...
```

A few TODOs:
[+] Compose/figure out how to do with autodiff - right now it will run on autodiff as well
[+] Support all of the nvfuser operators that are added in guarding
[+] Figure out what to do with control flow that isn't taken (right now it will just error). this is probably a source of the original issue :/  - will just error
[+] (After those are figured out) add to docs

Pull Request resolved: https://github.com/pytorch/pytorch/pull/75777
Approved by: https://github.com/davidberard98
2022-04-25 16:08:57 +00:00
..
caffe2
cpp Rename tools/codegen to torchgen (#76275) 2022-04-25 01:38:06 +00:00
source [JIT] Add Context Manager to force strict fusion 2022-04-25 16:08:57 +00:00
.gitignore
libtorch.rst
make.bat
Makefile Add list of supported ATen ops by ONNX converter into torch.onnx page 2022-04-07 00:05:44 +00:00
README.md
requirements.txt Jinja2 version pinned to 3.0.* (#74690) 2022-03-24 21:58:28 +00:00

Please see the Writing documentation section of CONTRIBUTING.md for details on both writing and building the docs.