Remove nodes from graph or reset entire default graph

Update 11/2/2016

tf.reset_default_graph()

Old stuff

There’s reset_default_graph, but not part of public API (I think it should be, does someone wants to file an issue on GitHub?)

My work-around to reset things is this:

from tensorflow.python.framework import ops
ops.reset_default_graph()
sess = tf.InteractiveSession()

Leave a Comment