MCPcopy Index your code
hub / github.com/FoundationVision/ByteTrack / synchronize

Function synchronize

yolox/utils/dist.py:37–48  ·  view source on GitHub ↗

Helper function to synchronize (barrier) among all processes when using distributed training

()

Source from the content-addressed store, hash-verified

35
36
37def synchronize():
38 """
39 Helper function to synchronize (barrier) among all processes when using distributed training
40 """
41 if not dist.is_available():
42 return
43 if not dist.is_initialized():
44 return
45 world_size = dist.get_world_size()
46 if world_size == 1:
47 return
48 dist.barrier()
49
50
51def get_world_size() -> int:

Callers 7

random_resizeFunction · 0.90
evaluateMethod · 0.90
evaluate_sortMethod · 0.90
evaluate_deepsortMethod · 0.90
evaluate_motdtMethod · 0.90
evaluateMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected