提交 42e4a2af 编写于 作者: J jackalcooper

importer supports block arg

上级 0a5b7f7c
......@@ -439,6 +439,9 @@ LogicalResult ConvertUserOpInputs(Operation* op, oneflow::UserOpAdaptor& user_op
.str();
*((*user_conf->mutable_input())[input_key].mutable_s()->Add()) = output_lbn_in_source_op;
input_idx += 1;
} else if (auto arg = op->getOperand(input_idx).dyn_cast<mlir::BlockArgument>()) {
*((*user_conf->mutable_input())[input_key].mutable_s()->Add()) =
"arg/" + std::to_string(arg.getArgNumber());
} else {
op->emitError() << "fail to convert MLIR result to protobuf, name: " + op_name;
op->dump();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册