tf.compat.v1.reset_default_graph

Clears the default graph stack and resets the global default graph.