tf.estimator.SecondOrStepTimer

Timer that triggers at most once every N seconds or once every N steps.

This symbol is also exported to v2 in tf.estimator namespace. See https://github.com/tensorflow/estimator/blob/master/tensorflow_estimator/python/estimator/hooks/basic_session_run_hooks.py

Methods

last_triggered_step

View source

Returns the last triggered time step or None if never triggered.

reset

View source

Resets the timer.

should_trigger_for_step

View source