Unverified Commit d1abf06f authored by Paul Fultz II's avatar Paul Fultz II Committed by GitHub
Browse files

Ensure unique module name for MLIR standalone ops (#2360)

parent 7604ecf5
......@@ -361,7 +361,8 @@ struct find_mlir_standalone_op
return;
static size_t counter = 0;
module_ref mm = mpm.create_module("mlir_" + std::to_string(counter++));
module_ref mm =
mpm.create_module("mlir_" + conv_based_op->name() + std::to_string(counter++));
mm->set_bypass();
auto [anchor_op, top_inputs] = fuse_input_ops_and_gemm_based_op(mm, conv_based_op);
mm->add_return({anchor_op});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment