def setup_session(): """Clears the default graph and starts an interactive session""" tf.reset_default_graph() tf.InteractiveSession()