Merge pull request #11450 from jacquesqiao/fix-prefetch-bug

outvar must be create in local scope for prefetch
wangkuiyi-patch-1
Qiao Longfei 7 years ago committed by GitHub
commit cbaa24f597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -169,7 +169,8 @@ class RequestPrefetch final : public RequestBase {
auto scope = request_->GetMutableLocalScope();
auto invar = scope->FindVar(in_var_name);
framework::Variable* outvar = scope->FindVar(out_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);

Loading…
Cancel
Save