MCPcopy Create free account
hub / github.com/OpenMeshLab/MeshXL / my_worker_init_fn

Function my_worker_init_fn

utils/misc.py:9–10  ·  view source on GitHub ↗
(worker_id)

Source from the content-addressed store, hash-verified

7
8
9def my_worker_init_fn(worker_id):
10 np.random.seed(np.random.get_state()[1][0] + worker_id)
11
12
13@torch.jit.ignore

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected