When working with the default global graph, is it possible to remove nodes after they\'ve been added, or alternatively to reset the default graph to empty? When working with
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()