We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bd57af commit 827781eCopy full SHA for 827781e
1 file changed
tensorflow/compiler/mlir/tfrt/transforms/mlrt/import_model.cc
@@ -120,11 +120,11 @@ absl::StatusOr<mlrt::bc::Buffer> ConvertTfMlirToBytecode(
120
121
mlir::StatusScopedDiagnosticHandler diag_handler(module.getContext());
122
123
- tensorflow::CreateTFInvariantOptimizationPipelineHelper(pm, options);
124
-
125
pm.addPass(mlrt_compiler::CreateWhileToMapFnPass());
126
// Remove unreachable private functions after map_fn conversion.
127
pm.addPass(mlir::createSymbolDCEPass());
+
+ tensorflow::CreateTFInvariantOptimizationPipelineHelper(pm, options);
128
// TODO(b/283481729): Add test to cover unused constants that do not
129
// cause op_key discontinuity
130
pm.addNestedPass<mlir::func::FuncOp>(mlir::createCanonicalizerPass());
0 commit comments