(message)
| 28 | |
| 29 | |
| 30 | def print_rank_0(message): |
| 31 | if torch.distributed.is_initialized(): |
| 32 | if torch.distributed.get_rank() == 0: |
| 33 | print(message, flush=True) |
| 34 | else: |
| 35 | print(message, flush=True) |
| 36 | |
| 37 | |
| 38 | def print_args(args): |
no outgoing calls
no test coverage detected