MCPcopy Index your code
hub / github.com/Project-MONAI/MONAI / is_main_test_process

Function is_main_test_process

tests/test_utils.py:354–358  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

352
353
354def is_main_test_process():
355 ps = torch.multiprocessing.current_process()
356 if not ps or not hasattr(ps, "name"):
357 return False
358 return ps.name.startswith("Main")
359
360
361def has_cupy():

Callers 1

has_cupyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…