Skip to content

Commit 7e6518e

Browse files
committed
fix compile warning
1 parent 7d1b146 commit 7e6518e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/framework/parallel_executor.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void ParallelExecutor::BCastParamsToGPUs(
164164
auto place = member_->places_[i];
165165
void *buffer;
166166

167-
if (initialize && i == 0 || !initialize && i == var_dev_id) {
167+
if ((initialize && i == 0) || (!initialize && i == var_dev_id)) {
168168
buffer = const_cast<void *>(main_tensor.data<void>());
169169
} else {
170170
auto local_scope = member_->local_scopes_[i];

0 commit comments

Comments
 (0)