Skip to content

Commit

Permalink
reset InitParams in comm
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaocaibei123 committed Nov 14, 2021
1 parent 05478b1 commit d32a322
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions paddle/fluid/distributed/service/communicator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,20 @@ void Communicator::InitParams(const RecvCtxMap &recv_varname_to_ctx) {
VLOG(1) << "push dense param to table " << table_id
<< " from 0' trainer done";
}
BarrierWithTable(1);
} else {
BarrierWithTable(1);
for (auto &iter : recv_varname_to_ctx) {
auto &table_id = iter.first;
auto &varnames = iter.second;
RpcRecvDense(varnames, table_id, recv_scope_);
VLOG(1) << "pull dense param to table " << table_id
<< " from 0' trainer done";
}
}
std::this_thread::sleep_for(
std::chrono::milliseconds(100 + trainer_id_ * 10));
BarrierWithTable(1);
return;
}

Expand Down

1 comment on commit d32a322

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.