[null,null,["Last updated 2020-10-01 UTC."],[],[],null,["# tf.reset_default_graph\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/framework/ops.py#L5838-L5855) |\n\nClears the default graph stack and resets the global default graph.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.reset_default_graph`](/api_docs/python/tf/compat/v1/reset_default_graph)\n\n\u003cbr /\u003e\n\n tf.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/Session) or [`tf.compat.v1.InteractiveSession`](../tf/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."]]