# tf.config.experimental.get_synchronous_execution

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/framework/config.py#L375-L385) |

Gets whether operations are executed synchronously or asynchronously.

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.config.experimental.get_synchronous_execution`](https://www.tensorflow.org/api_docs/python/tf/config/experimental/get_synchronous_execution)

<br />

    tf.config.experimental.get_synchronous_execution()

TensorFlow can execute operations synchronously or asynchronously. If
asynchronous execution is enabled, operations may return "non-ready" handles.

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Current thread execution mode ||

<br />