MCPcopy 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
25def is_main_process():
26 return (not dist.is_available() or not dist.is_initialized() or rank == 0)
27
28
29def get_parameter_number(model):

Callers 2

__init__Method · 0.85
trainMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected