fix compile warning

revert-11610-move_hooks
Yancey1989 7 years ago
parent 7d1b146939
commit 7e6518e8ca

@ -164,7 +164,7 @@ void ParallelExecutor::BCastParamsToGPUs(
auto place = member_->places_[i];
void *buffer;
if (initialize && i == 0 || !initialize && i == var_dev_id) {
if ((initialize && i == 0) || (!initialize && i == var_dev_id)) {
buffer = const_cast<void *>(main_tensor.data<void>());
} else {
auto local_scope = member_->local_scopes_[i];

Loading…
Cancel
Save