class_docstr: Hook to extend calls to MonitoredSession.run().
class_docstr_tok: ["Hook","to","extend","calls","to","MonitoredSession.run","(",")","."]
docstr: Called at the end of session.
  
  The `session` argument can be used in case the hook wants to run final ops,
  such as saving a last checkpoint.
  
  If `session.run()` raises exception other than OutOfRangeError or
  StopIteration then `end()` is not called.
  Note the difference between `end()` and `after_run()` behavior when
  `session.run()` raises OutOfRangeError or StopIteration. In that case
  `end()` is called but `after_run()` is not called.
  
  Args:
    session: A TensorFlow Session that will be soon closed.
docstr_tok: ["Called","at","the","end","of","session",".","The","`","session","`","argument","can","be","used","in","case","the","hook","wants","to","run","final","ops",",","such","as","saving","a","last","checkpoint",".","If","`","session.run","(",")","`","raises","exception","other","than","OutOfRangeError","or","StopIteration","then","`","end","(",")","`","is","not","called",".","Note","the","difference","between","`","end","(",")","`","and","`","after_run","(",")","`","behavior","when","`","session.run","(",")","`","raises","OutOfRangeError","or","StopIteration",".","In","that","case","`","end","(",")","`","is","called","but","`","after_run","(",")","`","is","not","called",".","Args",":","session",":","A","TensorFlow","Session","that","will","be","soon","closed","."]
code: def end(self, session):  # pylint: disable=unused-argument
      """Called at the end of session.
  
      The `session` argument can be used in case the hook wants to run final ops,
      such as saving a last checkpoint.
  
      If `session.run()` raises exception other than OutOfRangeError or
      StopIteration then `end()` is not called.
      Note the difference between `end()` and `after_run()` behavior when
      `session.run()` raises OutOfRangeError or StopIteration. In that case
      `end()` is called but `after_run()` is not called.
  
      Args:
        session: A TensorFlow Session that will be soon closed.
      """
      pass
  
file_path: tensorflow/tensorflow/python/training/session_run_hook.py
imports: import collections
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 5 for calling the SessionRunHook obj's underlying member method code with example usage: obj.end(session) without return types