Whether or not this process is the local (e.g., on one machine if training in a distributed fashion on several machines) main process.
(self)
| 4411 | # ---- Utilities ---- |
| 4412 | |
| 4413 | def is_local_process_zero(self) -> bool: |
| 4414 | """ |
| 4415 | Whether or not this process is the local (e.g., on one machine if training in a distributed fashion on several |
| 4416 | machines) main process. |
| 4417 | """ |
| 4418 | return self.args.local_process_index == 0 |
| 4419 | |
| 4420 | def is_world_process_zero(self) -> bool: |
| 4421 | """ |
no outgoing calls
no test coverage detected