def end(self, session=None):
    "Callback at the end of training/evaluation.\n\n    Args:\n      session: A `tf.Session` object that can be used to run ops.\n\n    Raises:\n      ValueError: if we've not begun a run.\n    "
    _ = session
    if (not self._begun):
        raise ValueError('end called without begin.')
    self._max_steps = None
    self._begun = False
Callback at the end of training/evaluation.

Args:
  session: A `tf.Session` object that can be used to run ops.

Raises:
  ValueError: if we've not begun a run.
def end(self, session=None):
    "Callback at the end of training/evaluation.\n\n    Args:\n      session: A `tf.Session` object that can be used to run ops.\n\n    Raises:\n      ValueError: if we've not begun a run.\n    "
    _ = session
    if (not self._begun):
        raise ValueError('end called without begin.')
    self._max_steps = None
    self._begun = False