TensorFlow

API

 tf.compat / v1 / v1.disable_control_flow_v2


Disables eager execution.

Used in the notebooks

Used in the tutorials

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.


此页内容是否对您有帮助