Skip to content

Commit

Permalink
Add canonicalization pass for torch import (iree-org#18150)
Browse files Browse the repository at this point in the history
It is possible for post decomposition that there will be available
canonicalizations. Added the pass to support the cleanup.
  • Loading branch information
rsuderman authored Aug 8, 2024
1 parent e9e24f8 commit 643f719
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/plugins/input/Torch/InputConversion/Passes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ void createTorchToIREEPipeline(
pm.addNestedPass<func::FuncOp>(
torch::Torch::createDecomposeComplexOpsPass(emptyArrayRef));
pm.addNestedPass<func::FuncOp>(torch::Torch::createFuseQuantizedOpsPass());
pm.addNestedPass<func::FuncOp>(createCanonicalizerPass());
pm.addNestedPass<func::FuncOp>(torch::Torch::createScalarizeShapesPass());
pm.addNestedPass<func::FuncOp>(torch::createConvertTorchToTMTensorPass());
pm.addNestedPass<func::FuncOp>(
Expand Down

0 comments on commit 643f719

Please sign in to comment.