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 7d1b146 commit 7e6518eCopy full SHA for 7e6518e
paddle/fluid/framework/parallel_executor.cc
@@ -164,7 +164,7 @@ void ParallelExecutor::BCastParamsToGPUs(
164
auto place = member_->places_[i];
165
void *buffer;
166
167
- if (initialize && i == 0 || !initialize && i == var_dev_id) {
+ if ((initialize && i == 0) || (!initialize && i == var_dev_id)) {
168
buffer = const_cast<void *>(main_tensor.data<void>());
169
} else {
170
auto local_scope = member_->local_scopes_[i];
0 commit comments