()
| 352 | |
| 353 | |
| 354 | def 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 | |
| 361 | def has_cupy(): |
no outgoing calls
no test coverage detected
searching dependent graphs…