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/mae/util/misc.py:195–198 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
193
194
195
def
get_world_size():
196
if
not is_dist_avail_and_initialized():
197
return
1
198
return
dist.get_world_size()
199
200
201
def
get_rank():
Callers
2
print
Function · 0.70
all_reduce_mean
Function · 0.70
Calls
1
is_dist_avail_and_initialized
Function · 0.70
Tested by
no test coverage detected