View source on GitHub |
Disables eager execution.
tf.compat.v1.disable_eager_execution()
Migrate to TF2
This function is not necessary if you are using TF2. Eager execution is enabled by default. If you want to use Graph mode please consider tf.function.
Description
This function can only be called before any Graphs, Ops, or Tensors have been created.