Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
7
def
is_main_process():
8
return
dist.get_rank() == 0
9
10
11
def
do_nothing(*args, **kwargs):
Callers
1
execute_on_main_process
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected