-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AOT] Use torch dialect in backend form instead of raw torch dialect (#…
…81) With llvm/torch-mlir#3541 we can now intercept the Torch dialect during TorchDynamo export at two stages: 1. OutputType.RAW: This gets us the torch dialect as-imported from the FX graph 2. OutputType.TORCH: This gets us the torch dialect in backend compliant form, after the raw torch goes through DecomposeComplexOps and ReduceOpVariants. We've been using 1 for all the AOT (e2e) tests, however this PR changes it to use 2, which is closer to the real backend lowering pipelines we use internally as well.
- Loading branch information
1 parent
e6eaf43
commit 8e29429
Showing
2 changed files
with
17 additions
and
12 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