提交 82d741c4 编写于 作者: Y Yancey1989

fix op name typo

上级 6d69ae0c
...@@ -230,10 +230,10 @@ std::unique_ptr<SSAGraph> MultiDevSSAGraphBuilder::Build( ...@@ -230,10 +230,10 @@ std::unique_ptr<SSAGraph> MultiDevSSAGraphBuilder::Build(
} }
CreateDistTrainOp(&result, *op, rpc_op_device_id); CreateDistTrainOp(&result, *op, rpc_op_device_id);
} }
if (op->Type() == "oncat") { if (op->Type() == "concat") {
auto got = remote_vars_devices_.find(op->InputArgumentNames()[0]); auto got = remote_vars_devices_.find(op->InputArgumentNames()[0]);
PADDLE_ENFORCE_NE(got != remote_vars_devices_.end(), PADDLE_ENFORCE(got != remote_vars_devices_.end(),
"can not find right place to concat received var."); "can not find right place to concat received var.");
CreateDistTrainOp(&result, *op, got->second); CreateDistTrainOp(&result, *op, got->second);
} else { } else {
CreateDistTrainOp(&result, *op, 0); CreateDistTrainOp(&result, *op, 0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册