MCPcopy
hub / github.com/microsoft/Cream / is_main_process

Function is_main_process

TinyViT/utils.py:330–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

328
329
330def is_main_process():
331 return dist.get_rank() == 0
332
333
334def run_cmd(cmd, default=None):

Callers 4

mainFunction · 0.90
train_one_epochFunction · 0.90
main.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected