(self)
| 344 | self._update_last() |
| 345 | |
| 346 | def _update_last(self): |
| 347 | old_pause = self._timer.is_paused() |
| 348 | self._timer.reset() |
| 349 | if old_pause: |
| 350 | self._timer.pause() |
| 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() |
no test coverage detected