diff --git a/paddle/fluid/operators/distributed/grpc/grpc_server.cc b/paddle/fluid/operators/distributed/grpc/grpc_server.cc index a0ed79201d5d95252b293f4c118f8b75e5cc5b25..f32681738c38ee9db9366631971ce21e8d1830af 100644 --- a/paddle/fluid/operators/distributed/grpc/grpc_server.cc +++ b/paddle/fluid/operators/distributed/grpc/grpc_server.cc @@ -107,9 +107,11 @@ class RequestSend final : public RequestBase { int trainer_id = request_->GetTrainerId(); framework::Variable* outvar = nullptr; + /* if (!request_handler_->sync_mode()) { request_->ReleaseOwnershipOfLocalScope(); } + */ request_handler_->Handle(varname, scope, invar, &outvar, trainer_id); Finish(reply_, &responder_); }