Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Kitware/COAT
/ get_rank
Function
get_rank
utils/utils.py:300–303 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
298
299
300
def
get_rank():
301
if
not is_dist_avail_and_initialized():
302
return
0
303
return
dist.get_rank()
304
305
306
def
is_main_process():
Callers
1
is_main_process
Function · 0.85
Calls
1
is_dist_avail_and_initialized
Function · 0.85
Tested by
no test coverage detected