Join us at TensorFlow World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.disable_eager_execution

View source on GitHub

Disables eager execution.

Aliases:

  • tf.compat.v1.disable_eager_execution
tf.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.