We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71a2e6b commit 06fb055Copy full SHA for 06fb055
paddle/fluid/framework/parallel_executor.cc
@@ -63,7 +63,8 @@ ParallelExecutor::ParallelExecutor(
63
// Step 1. Bcast the params to devs.
64
// Create local scopes
65
if (local_scopes.empty()) {
66
- for (size_t i = 0; i < member_->places_.size(); ++i) {
+ member_->local_scopes_.emplace_back(member_->global_scope_);
67
+ for (size_t i = 1; i < member_->places_.size(); ++i) {
68
member_->local_scopes_.emplace_back(&scope->NewScope());
69
}
70
} else {
0 commit comments