import tensorflow as tf tf.compat.v1.reset_default_graph()
from tensorflow.python.framework import ops ops.reset_default_graph()