Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bic-L/MaxFormer
/ is_main_process
Function
is_main_process
event/utils.py:223–224 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
221
222
223
def
is_main_process():
224
return
get_rank() == 0
225
226
227
def
save_on_master(*args, **kwargs):
Callers
1
save_on_master
Function · 0.70
Calls
1
get_rank
Function · 0.70
Tested by
no test coverage detected