MCPcopy Create free account
hub / github.com/CDTrans/CDTrans / shared_random_seed

Function shared_random_seed

datasets/sampler_ddp.py:99–109  ·  view source on GitHub ↗

Returns: int: a random number that is the same across all workers. If workers need a shared RNG, they can use this shared seed to create one. All workers must call this function, otherwise it will deadlock.

()

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

__iter__Method · 0.85

Calls 1

all_gatherFunction · 0.85

Tested by

no test coverage detected