From 490a07f5b6f8c461a46a045dd07025f5ce9c74ba Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Thu, 14 Jun 2018 09:22:59 +0800 Subject: [PATCH] add comment that out var of prefetch must be created in local scope --- paddle/fluid/operators/detail/grpc_server.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/fluid/operators/detail/grpc_server.cc b/paddle/fluid/operators/detail/grpc_server.cc index 14152bded89..5a87258901c 100644 --- a/paddle/fluid/operators/detail/grpc_server.cc +++ b/paddle/fluid/operators/detail/grpc_server.cc @@ -169,6 +169,7 @@ class RequestPrefetch final : public RequestBase { auto scope = request_->GetMutableLocalScope(); auto invar = scope->FindVar(in_var_name); + // out var must be created in local scope! framework::Variable* outvar = scope->Var(out_var_name); request_handler_->Handle(in_var_name, scope, invar, &outvar, out_var_name); -- GitLab