tf.executing_eagerly

TensorFlow 1 version View source on GitHub

Returns True if the current thread has eager execution enabled.

Aliases:

tf.executing_eagerly()

Used in the guide:

Used in the tutorials:

Eager execution is typically enabled via tf.compat.v1.enable_eager_execution, but may also be enabled within the context of a Python function via tf.contrib.eager.py_func.