TensorFlow 2.0 Beta is available Learn more

tf.contrib.eager.set_execution_mode

View source on GitHub

Sets execution mode for the current thread.

tf.contrib.eager.set_execution_mode(mode)