Skip to content

Commit

Permalink
Address CI comment
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekkhandelwal1 committed Oct 21, 2024
1 parent 19ba481 commit d46490e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/Dialect/Torch/Transforms/Passes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,11 @@ void mlir::torch::Torch::createTorchOnnxToTorchBackendPipeline(
Torch::createDecomposeComplexOpsPass(options.backendLegalOps));
pm.addNestedPass<func::FuncOp>(createCanonicalizerPass());
}
// TODO: Move the below two passes i.e., ScalarizeShapes and
// TODO: Move the combination of two passes i.e., ScalarizeShapes and
// TorchShapeRefinementPipeline out of here and create an onnx shape
// refinement pipeline which runs iteratively over the IR.
// This pass scalarizes the tensor shape computations.
createTorchShapeRefinementPipeline(pm, options);
pm.addNestedPass<mlir::func::FuncOp>(
mlir::torch::Torch::createScalarizeShapesPass());
createTorchShapeRefinementPipeline(pm, options);
Expand Down

0 comments on commit d46490e

Please sign in to comment.