Skip to content

Commit

Permalink
Update dist_helper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
donnyyou authored Oct 12, 2019
1 parent 7ec1885 commit 9379d7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/helper/dist_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ def all_gather(data):
Returns:
list[data]: list of data gathered from each rank
"""
DistHelper.synchronize()
world_size = DistHelper.get_world_size()
if world_size == 1:
return [data]
Expand Down

0 comments on commit 9379d7d

Please sign in to comment.