(self)
| 351 | self._last_step = self.global_step |
| 352 | |
| 353 | def _trigger(self): |
| 354 | steps_per_sec = (self.global_step - self._last_step) / self._timer.seconds() |
| 355 | self._update_last() |
| 356 | |
| 357 | if self._samples_per_step is None: |
| 358 | self.trainer.monitors.put_scalar("Throughput (steps/sec)", steps_per_sec) |
| 359 | else: |
| 360 | self.trainer.monitors.put_scalar("Throughput (samples/sec)", steps_per_sec * self._samples_per_step) |
nothing calls this directly
no test coverage detected