Reverse create var

wangkuiyi-patch-2
Yu Yang 7 years ago
parent 2e8459be71
commit 71a2e6b73c

@ -163,7 +163,9 @@ void ParallelExecutor::Run(
SplitTensorToPlaces(feed_tensors);
// Create local scopes.
for (auto &scope : member_->local_scopes_) {
for (auto it = member_->local_scopes_.rbegin();
it != member_->local_scopes_.rend(); ++it) {
auto &scope = *it;
Scope &local_scope = scope->NewScope();
*scope->Var(details::kLocalExecScopeName)->GetMutable<Scope *>() =
&local_scope;

Loading…
Cancel
Save