# tf.contrib.eager.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#L1744-L1756) |

Context manager for setting execution mode for current thread.

    @tf_contextlib.contextmanager
    tf.contrib.eager.execution_mode(
        mode
    )