From 82d741c4b9a1b4015df1246d05ff5a638cf52de9 Mon Sep 17 00:00:00 2001 From: Yancey1989 Date: Wed, 6 Jun 2018 15:10:16 +0800 Subject: [PATCH] fix op name typo --- .../fluid/framework/details/multi_devices_graph_builder.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/fluid/framework/details/multi_devices_graph_builder.cc b/paddle/fluid/framework/details/multi_devices_graph_builder.cc index 1c1b11d0e4..d1683774b4 100644 --- a/paddle/fluid/framework/details/multi_devices_graph_builder.cc +++ b/paddle/fluid/framework/details/multi_devices_graph_builder.cc @@ -230,10 +230,10 @@ std::unique_ptr MultiDevSSAGraphBuilder::Build( } CreateDistTrainOp(&result, *op, rpc_op_device_id); } - if (op->Type() == "oncat") { + if (op->Type() == "concat") { auto got = remote_vars_devices_.find(op->InputArgumentNames()[0]); - PADDLE_ENFORCE_NE(got != remote_vars_devices_.end(), - "can not find right place to concat received var."); + PADDLE_ENFORCE(got != remote_vars_devices_.end(), + "can not find right place to concat received var."); CreateDistTrainOp(&result, *op, got->second); } else { CreateDistTrainOp(&result, *op, 0);