()
| 69 | # ============================================================================ |
| 70 | |
| 71 | def is_main_process() -> bool: |
| 72 | return not dist.is_initialized() or dist.get_rank() == 0 |
| 73 | |
| 74 | |
| 75 | def get_world_size() -> int: |
no outgoing calls
no test coverage detected