From d762c6d7ff588d0d37a954d39b89ed509e70e6e6 Mon Sep 17 00:00:00 2001 From: Yancey1989 Date: Thu, 1 Feb 2018 12:57:46 +0800 Subject: [PATCH] Fix compilie error --- paddle/operators/listen_and_serv_op.cc | 2 +- paddle/operators/send_op.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/paddle/operators/listen_and_serv_op.cc b/paddle/operators/listen_and_serv_op.cc index 5745938ed..099f6b237 100644 --- a/paddle/operators/listen_and_serv_op.cc +++ b/paddle/operators/listen_and_serv_op.cc @@ -204,4 +204,4 @@ from send_op and send back variables to recv_op. namespace ops = paddle::operators; REGISTER_OPERATOR(listen_and_serv, ops::ListenAndServOp, - ops::ListenAndServOpMaker); \ No newline at end of file + ops::ListenAndServOpMaker); diff --git a/paddle/operators/send_op.cc b/paddle/operators/send_op.cc index 291d19ba8..ee0f268b0 100644 --- a/paddle/operators/send_op.cc +++ b/paddle/operators/send_op.cc @@ -65,9 +65,9 @@ class SendOp : public framework::OperatorBase { if (outs.size() > 0) { for (size_t i = 0; i < outs.size(); i++) { VLOG(3) << "getting " << outs[i] << " from " << epmap[i]; - client_.AsyncGetVariable(epmap[i], ctx, scope, outs[i]); + rpc_client->AsyncGetVariable(epmap[i], ctx, scope, outs[i]); } - PADDLE_ENFORCE(client_.Wait()); + PADDLE_ENFORCE(rpc_client->Wait()); } } }; -- GitLab