(self)
| 586 | print(*msg) |
| 587 | |
| 588 | def _next_batch(self): |
| 589 | # If using 3D parallelism, only some first-stage ranks may do IO |
| 590 | batch = None |
| 591 | if self.data_iterator is not None: |
| 592 | batch = next(self.data_iterator) |
| 593 | |
| 594 | # Any post-processing, like broadcasting across a slice-parallel group. |
| 595 | if self.batch_fn: |
| 596 | batch = self.batch_fn(batch) |
| 597 | |
| 598 | return batch |
| 599 | |
| 600 | def _exec_forward_pass(self, buffer_id): |
| 601 | self.tput_timer.start() |
no outgoing calls
no test coverage detected