From 8081e15774a4640cfe6ac66395e4fe296f940a40 Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Tue, 24 Apr 2018 13:07:54 +0800 Subject: [PATCH] fix send_recv_op_test --- paddle/fluid/operators/send_recv_op_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/send_recv_op_test.cc b/paddle/fluid/operators/send_recv_op_test.cc index 2b440fe2d..72dc1586c 100644 --- a/paddle/fluid/operators/send_recv_op_test.cc +++ b/paddle/fluid/operators/send_recv_op_test.cc @@ -137,7 +137,7 @@ void StartServerNet(bool is_sparse) { attrs.insert({"GradList", std::vector({"x1"})}); attrs.insert({"OptimizeBlock", optimize_block}); attrs.insert({"PrefetchBlock", prefetch_block}); - attrs.insert({"grad_to_id", {}}); + attrs.insert({"grad_to_id", std::vector({""})}); attrs.insert({"sync_mode", true}); listen_and_serv_op = f::OpRegistry::CreateOp("listen_and_serv", {{"X", {"x1"}}}, {}, attrs); -- GitLab