# tf.contrib.eager.set_execution_mode

<br />

|---|
| [![](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/context.py#L1738-L1740) |

Sets execution mode for the current thread.

    tf.contrib.eager.set_execution_mode(
        mode
    )