tensortools.hooks

IntervalHook

IntervalHook(self, interval)

A hook which runs every # of iterations. Useful for subclassing.

session_run_args

IntervalHook.session_run_args(self, run_context)

Create the session run arguments.

Arguments:

  • run_context: The run context.

Returns:

The list of arguments to run.

GlobalStepIncrementor

GlobalStepIncrementor(self)

Increments the global step after each Session run call. Useful for models which do not use optimizers.