Skip to content

Commit

Permalink
No public description
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 591956592
  • Loading branch information
CLU Authors authored and copybara-github committed Dec 18, 2023
1 parent 7ba2a9d commit 588d93c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions clu/periodic_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,10 @@ def __init__(self,
self._every_secs = every_secs
self._on_steps = set(on_steps or [])
# Step and timestamp for the last time the action triggered.
self._previous_step = None
self._previous_time = None
self._previous_step: int = None
self._previous_time: float = None
# Just for checking that __call__() was called every step.
self._last_step = None
self._last_step: int = None

def _init_and_check(self, step: int, t: float):
"""Initializes and checks it was called at every step."""
Expand Down

0 comments on commit 588d93c

Please sign in to comment.