Returns: True if the current process is the main one.
()
| 64 | |
| 65 | |
| 66 | def is_main_process() -> bool: |
| 67 | """ |
| 68 | Returns: |
| 69 | True if the current process is the main one. |
| 70 | """ |
| 71 | return get_global_rank() == 0 |
| 72 | |
| 73 | |
| 74 | def _restrict_print_to_main_process() -> None: |
no test coverage detected