# tf.config.experimental_run_functions_eagerly

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/config/experimental_run_functions_eagerly) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/eager/def_function.py#L218-L235) |

Enables / disables eager execution of [`tf.function`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/function)s.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.config.experimental_run_functions_eagerly`](https://www.tensorflow.org/api_docs/python/tf/config/experimental_run_functions_eagerly), \`tf.compat.v2.config.experimental_run_functions_eagerly\`

<br />

    tf.config.experimental_run_functions_eagerly(
        run_eagerly
    )

After calling [`tf.config.experimental_run_functions_eagerly(True)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/config/experimental_run_functions_eagerly) 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)`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/config/experimental_run_functions_eagerly) will
revert the behavior of all functions to graph functions.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `run_eagerly` | Boolean. Whether to run functions eagerly. |

<br />