Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allreduce_robust.cc: Allow num_global_replica to be 0 (#38)
In some cases, users may not want to have any global replica of the data being broadcasted/all-reduced. In such cases, set the result_buffer_round to -1 as a flag that this is not necessary and check for it.
- Loading branch information
1 parent
032152a
commit 21b5e12
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters