提交 7e6518e8 编写于 作者: Y Yancey1989

fix compile warning

上级 7d1b1469
......@@ -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];
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册