update comments

pull/57/head
linyiqi 2022-03-30 20:10:13 +08:00
parent 1b010767c5
commit d3932161fa
1 changed files with 2 additions and 2 deletions

View File

@ -10,9 +10,9 @@ def check_dist_init():
def sync_random_seed(seed=None, device='cuda'):
"""Make sure different ranks share the same seed.
"""Propagating the seed of rank 0 to all other ranks.
All workers must call
Make sure different ranks share the same seed. All workers must call
this function, otherwise it will deadlock. This method is generally used in
`DistributedSampler`, because the seed should be identical across all
processes in the distributed group.