tf.compat.v1.train.MonitoredTrainingSession

Creates a MonitoredSession for training.

Used in the notebooks

Used in the tutorials

For a chief, this utility sets proper session initializer/restorer. It also creates hooks related to checkpoint and summary saving. For workers, this utility sets proper session creator which waits for the chief to initialize/restore. Please check tf.compat.v1.train.MonitoredSession for more information.

master String the TensorFlow master to use.
is_chief If True, it will take care of initialization and recovery the underlying TensorFlow session. If False, it will wait on a chief to initialize or recover the TensorFlow session.
checkpoint_dir A string. Optional path to a directory where to restore variables.
scaffold A Scaffold used for gathering or building supportive ops. If not specified, a default one is created. It's used to finalize the graph.
hooks Optional list of SessionRunHook objects.
chief_only_hooks list of Sessio