[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.compat.v1.reset_default_graph\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.1.0/tensorflow/python/framework/ops.py#L5742-L5759) |\n\nClears the default graph stack and resets the global default graph. \n\n tf.compat.v1.reset_default_graph()\n\n| **Note:** The default graph is a property of the current thread. This function applies only to the current thread. Calling this function while a [`tf.compat.v1.Session`](../../../tf/compat/v1/Session) or [`tf.compat.v1.InteractiveSession`](../../../tf/compat/v1/InteractiveSession) is active will result in undefined behavior. Using any previously created [`tf.Operation`](../../../tf/Operation) or [`tf.Tensor`](../../../tf/Tensor) objects after calling this function will result in undefined behavior. Raises: AssertionError: If this function is called within a nested graph."]]