Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/alinlab/SelfPatch
/ get_rank
Function
get_rank
utils.py:417–420 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
415
416
417
def
get_rank():
418
if
not is_dist_avail_and_initialized():
419
return
0
420
return
dist.get_rank()
421
422
423
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