# tf.config.experimental.get_synchronous_execution

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/config/experimental/get_synchronous_execution) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/framework/config.py#L258-L268) |

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), \`tf.compat.v2.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 />