Skip to content

Commit 06fb055

Browse files
committed
New group
1 parent 71a2e6b commit 06fb055

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

paddle/fluid/framework/parallel_executor.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ ParallelExecutor::ParallelExecutor(
6363
// Step 1. Bcast the params to devs.
6464
// Create local scopes
6565
if (local_scopes.empty()) {
66-
for (size_t i = 0; i < member_->places_.size(); ++i) {
66+
member_->local_scopes_.emplace_back(member_->global_scope_);
67+
for (size_t i = 1; i < member_->places_.size(); ++i) {
6768
member_->local_scopes_.emplace_back(&scope->NewScope());
6869
}
6970
} else {

0 commit comments

Comments
 (0)