TF 2.0 is out! Get hands-on practice at TF World, Oct 28-31. Use code TF20 for 20% off select passes. Register now

tf.config.experimental_run_functions_eagerly

TensorFlow 1 version View source on GitHub

Enables / disables eager execution of tf.functions.

Aliases:

tf.config.experimental_run_functions_eagerly(run_eagerly)

Used in the guide:

After calling tf.config.experimental_run_functions_eagerly(True) all invocations of tf.function will run eagerly instead of running through a graph function.

This can be useful for debugging or profiling.

Similarly, calling tf.config.experimental_run_functions_eagerly(False) will revert the behavior of all functions to graph functions.

Args:

  • run_eagerly: Boolean. Whether to run functions eagerly.