Watch talks from the 2019 TensorFlow Dev Summit Watch now

tf.disable_eager_execution

tf.disable_eager_execution()

Defined in tensorflow/python/framework/ops.py.

Disables 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.