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()
More Related Contents:
- Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
- How to tell if tensorflow is using gpu acceleration from inside python shell?
- Using a pre-trained word embedding (word2vec or Glove) in TensorFlow
- Tensorflow – ValueError: Failed to convert a NumPy array to a Tensor (Unsupported object type float)
- What is the difference between ‘SAME’ and ‘VALID’ padding in tf.nn.max_pool of tensorflow?
- Tensorflow read images with labels
- TensorFlow version 1.0.0-rc2 on Windows: “OpKernel (‘op: “BestSplits” device_type: “CPU”‘) for unknown op: BestSplits” with test code
- Difference between Variable and get_variable in TensorFlow
- Tensorflow: How to get a tensor by name?
- TypeError: __array__() takes 1 positional argument but 2 were given (Image classification Keras)
- Tensorflow 2.0 – AttributeError: module ‘tensorflow’ has no attribute ‘Session’
- Processing time gets longer and longer after each iteration (TensorFlow)
- List of tensor names in graph in Tensorflow
- how to install tensorflow on anaconda python 3.6
- What do I need K.clear_session() and del model for (Keras with Tensorflow-gpu)?
- Illegal instruction (core dumped) after running import tensorflow
- Passing output of a CNN to BILSTM
- error: (-2:Unspecified error) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Cocoa support
- How do I check if keras is using gpu version of tensorflow?
- How to set layer-wise learning rate in Tensorflow?
- Tensorflow : logits and labels must have the same first dimension
- Load numpy array in google-cloud-ml job
- How to create a keras layer with a custom gradient in TF2.0?
- Cartesian Product in Tensorflow
- How to fix “AttributeError: module ‘tensorflow’ has no attribute ‘get_default_graph'”?
- What is right batch normalization function in Tensorflow?
- Is it thread-safe when using tf.Session in inference service?
- Strange behaviour of the loss function in keras model, with pretrained convolutional base
- Attach a queue to a numpy array in tensorflow for data fetch instead of files?
- TensorFlow 2.0 Keras: How to write image summaries for TensorBoard