Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Topdu/OpenOCR
/ is_main_process
Function
is_main_process
tools/engine/trainer.py:25–26 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
23
24
25
def
is_main_process():
26
return
(not dist.is_available() or not dist.is_initialized() or rank == 0)
27
28
29
def
get_parameter_number(model):
Callers
2
__init__
Method · 0.85
train
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected