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

Function get_world_size

yolox/utils/dist.py:51–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49
50
51def get_world_size() -> int:
52 if not dist.is_available():
53 return 1
54 if not dist.is_initialized():
55 return 1
56 return dist.get_world_size()
57
58
59def get_rank() -> int:

Callers 6

__init__Method · 0.90
all_reduceFunction · 0.85
all_gatherFunction · 0.85
gatherFunction · 0.85
get_num_boxesMethod · 0.85
get_num_boxesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected