MCPcopy Create free account
hub / github.com/cientgu/VQ-Diffusion / synchronize

Function synchronize

image_synthesis/distributed/distributed.py:39–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38
39def synchronize():
40 if not dist.is_available():
41 return
42
43 if not dist.is_initialized():
44 return
45
46 world_size = dist.get_world_size()
47
48 if world_size == 1:
49 return
50
51 dist.barrier()
52
53
54def get_world_size():

Callers

nothing calls this directly

Calls 1

is_initializedMethod · 0.80

Tested by

no test coverage detected