()
Closes the current default session and resets the graph.
Closes the current default session and resets the graph.
Closes the current default session and resets the graph .
def reset_graph():
  """Closes the current default session and resets the graph."""
  sess = tf.get_default_session()
  if sess:
    sess.close()
  tf.reset_default_graph()
def reset_graph ( ) : sess = tf . get_default_session ( ) if sess : sess . close ( ) tf . reset_default_graph ( )