I\'m getting this error
\'ValueError: Tensor Tensor(\"Placeholder:0\", shape=(1, 1), dtype=int32) is not an element of this graph.\'
Try first:
import tensorflow as tf graph = tf.get_default_graph()
Then, when you need to use predict:
with graph.as_default(): y = model.predict(X)