tf.compat.v1.disable_eager_execution
Stay organized with collections
Save and categorize content based on your preferences.
Disables eager execution.
tf.compat.v1.disable_eager_execution()
This function can only be called before any Graphs, Ops, or Tensors have been
created. It can be used at the beginning of the program for complex migration
projects from TensorFlow 1.x to 2.x.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[null,null,["Last updated 2020-10-01 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.2.0/tensorflow/python/framework/ops.py#L5664-L5676) |\n\nDisables eager execution. \n\n tf.compat.v1.disable_eager_execution()\n\nThis function can only be called before any Graphs, Ops, or Tensors have been\ncreated. It can be used at the beginning of the program for complex migration\nprojects from TensorFlow 1.x to 2.x."]]