Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDriveLab/ReSim
/ get_world_size
Function
get_world_size
SwissArmyTransformer/examples/yolos/util/misc.py:385–388 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
383
384
385
def
get_world_size():
386
if
not is_dist_avail_and_initialized():
387
return
1
388
return
dist.get_world_size()
389
390
391
def
get_rank():
Callers
3
forward
Method · 0.90
all_gather
Function · 0.70
reduce_dict
Function · 0.70
Calls
1
is_dist_avail_and_initialized
Function · 0.70
Tested by
no test coverage detected