MCPcopy Create free account
hub / github.com/MotrixLab/ViMoGen / is_main_process

Function is_main_process

parallel/utils.py:7–8  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7def is_main_process():
8 return dist.get_rank() == 0
9
10
11def do_nothing(*args, **kwargs):

Callers 1

execute_on_main_processFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected