(group=None, seed=0)
| 51 | return rank * 1000 + worker |
| 52 | |
| 53 | def worker_seed_sat(group=None, seed=0): |
| 54 | return pytorch_worker_seed(group=group) + seed * 23 |
| 55 | |
| 56 | class ConfiguredResampledShards(ResampledShards): |
| 57 | def __init__(self, urls, seed, nshards=sys.maxsize, deterministic=True): |
nothing calls this directly
no test coverage detected