This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Pull Request resolved: #1488 Previously, we had to override [`simple_ts_compile` in functorch](https://github.com/pytorch/functorch/blob/7fc24aa8bf5b7b3fc912cb0636e0c066c53f44ef/functorch/_src/compilers.py#L248-L251) to use `torch.jit.trace` instead of `torch.jit.script` because of a bug in TorchScript. The issue was fixed recently and we should no longer need to override this function. More importantly, it also becomes possible to run NNC with Buck with the change in this diff. One thing to note is that functorch 0.2.0 requires CPU-only PyTorch at the moment, whereas `pip install torch` on Linux will install PyTorch with CUDA 10.2 support. This wouldn't be an issue for most users unless they want to invoke `nnc_jit` -- in which case Linux users will have to install CPU PyTorch manually with `pip install torch --extra-index-url https://download.pytorch.org/whl/cpu`. Reviewed By: yucenli Differential Revision: D37026266 fbshipit-source-id: b079b20b2bc8748c6b1f57e2c7f277cb07a614a2
- Loading branch information
1 parent
4e093f4
commit 287a0a5
Showing
6 changed files
with
24 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters