Other Functions and Classes

class tf.contrib.learn.monitors.RunHookAdapterForMonitors

Wraps monitors into a SessionRunHook.


tf.contrib.learn.monitors.RunHookAdapterForMonitors.__init__(monitors) {:#RunHookAdapterForMonitors.init}


tf.contrib.learn.monitors.RunHookAdapterForMonitors.after_run(run_context, run_values)


tf.contrib.learn.monitors.RunHookAdapterForMonitors.before_run(run_context)


tf.contrib.learn.monitors.RunHookAdapterForMonitors.begin()


tf.contrib.learn.monitors.RunHookAdapterForMonitors.end(session)


class tf.contrib.learn.monitors.SummaryWriterCache

Cache for summary writers.

This class caches summary writers, one per directory.


tf.contrib.learn.monitors.SummaryWriterCache.clear()

Clear cached summary writers. Currently only used for unit tests.


tf.contrib.learn.monitors.SummaryWriterCache.get(logdir)

Returns the SummaryWriter for the specified directory.

Args:
  • logdir: str, name of the directory.
Returns:

A SummaryWriter.