Skip to content

Commit 490a07f

Browse files
committed
add comment that out var of prefetch must be created in local scope
1 parent a49ee22 commit 490a07f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

paddle/fluid/operators/detail/grpc_server.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ class RequestPrefetch final : public RequestBase {
169169

170170
auto scope = request_->GetMutableLocalScope();
171171
auto invar = scope->FindVar(in_var_name);
172+
// out var must be created in local scope!
172173
framework::Variable* outvar = scope->Var(out_var_name);
173174

174175
request_handler_->Handle(in_var_name, scope, invar, &outvar, out_var_name);

0 commit comments

Comments
 (0)