MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / executing_eagerly

Function executing_eagerly

tensorflow/python/eager/context.py:1592–1602  ·  view source on GitHub ↗

Returns True if the current thread has eager execution enabled. 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.

()

Source from the content-addressed store, hash-verified

1590
1591@tf_export("executing_eagerly")
1592def executing_eagerly():
1593 """Returns True if the current thread has eager execution enabled.
1594
1595 Eager execution is typically enabled via
1596 `tf.compat.v1.enable_eager_execution`, but may also be enabled within the
1597 context of a Python function via tf.contrib.eager.py_func.
1598 """
1599 if context_safe() is None:
1600 return default_execution_mode == EAGER_MODE
1601
1602 return context().executing_eagerly()
1603
1604
1605def in_eager_mode():

Callers 3

in_eager_modeFunction · 0.85
shared_nameFunction · 0.85
_tmp_in_graph_modeFunction · 0.85

Calls 3

context_safeFunction · 0.85
contextFunction · 0.85
executing_eagerlyMethod · 0.80

Tested by

no test coverage detected