MCPcopy Create free account
hub / github.com/Kitware/COAT / is_main_process

Function is_main_process

utils/utils.py:306–307  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304
305
306def is_main_process():
307 return get_rank() == 0
308
309
310def save_on_master(*args, **kwargs):

Callers 1

save_on_masterFunction · 0.85

Calls 1

get_rankFunction · 0.85

Tested by

no test coverage detected