Merge pull request #8030 from Yancey1989/fix_compile_error

Fix compilie error
emailweixu-patch-1
Yancey 7 years ago committed by GitHub
commit 3f616152e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);
ops::ListenAndServOpMaker);

@ -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());
}
}
};

Loading…
Cancel
Save