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

Function eager_mode

tensorflow/python/eager/context.py:1636–1638  ·  view source on GitHub ↗

Context-manager to enable eager execution for the current thread.

()

Source from the content-addressed store, hash-verified

1634
1635
1636def eager_mode():
1637 """Context-manager to enable eager execution for the current thread."""
1638 return context()._mode(EAGER_MODE) # pylint: disable=protected-access
1639
1640
1641# TODO(agarwal): get rid of this and use ops.name_scope instead.

Callers

nothing calls this directly

Calls 2

contextFunction · 0.85
_modeMethod · 0.45

Tested by

no test coverage detected