MCPcopy Create free account
hub / github.com/coperception/star / is_main_process

Function is_main_process

star/utils/misc.py:207–208  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

205
206
207def is_main_process():
208 return get_rank() == 0
209
210
211def save_on_master(*args, **kwargs):

Callers 1

save_on_masterFunction · 0.85

Calls 1

get_rankFunction · 0.85

Tested by

no test coverage detected