MCPcopy Create free account
hub / github.com/VincentHancoder/SSGD / sync_random_seed

Function sync_random_seed

mmdet/core/utils/dist_utils.py:157–193  ·  view source on GitHub ↗

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. In distributed sampling, di

(seed=None, device='cuda')

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 4

__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90
__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected