[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.compat.v1.disable_eager_execution\n\n\u003cbr /\u003e\n\n|-------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/python/framework/ops.py#L4868-L4886) |\n\nDisables eager execution. \n\n tf.compat.v1.disable_eager_execution()\n\n\u003cbr /\u003e\n\nMigrate to TF2\n--------------\n\n\u003cbr /\u003e\n\n| **Caution:** This API was designed for TensorFlow v1. Continue reading for details on how to migrate from this API to a native TensorFlow v2 equivalent. See the [TensorFlow v1 to TensorFlow v2 migration guide](https://www.tensorflow.org/guide/migrate) for instructions on how to migrate the rest of your code.\n\nThis function is not necessary if you are using TF2. Eager execution is\nenabled by default. If you want to use Graph mode please consider\n[tf.function](https://www.tensorflow.org/api_docs/python/tf/function).\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nDescription\n-----------\n\nThis function can only be called before any Graphs, Ops, or Tensors have been\ncreated."]]