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

Function _tmp_in_graph_mode

tensorflow/python/eager/context.py:1884–1889  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1882# but they do all import this file. Note that IS_IN_GRAPH_MODE and
1883# in_graph_mode are both parameterless functions.
1884def _tmp_in_graph_mode():
1885 if context_safe() is None:
1886 # Context not yet initialized. Assume graph mode following the
1887 # default implementation in `is_in_graph_mode`.
1888 return True
1889 return not executing_eagerly()
1890
1891
1892is_in_graph_mode.IS_IN_GRAPH_MODE = _tmp_in_graph_mode

Callers

nothing calls this directly

Calls 2

context_safeFunction · 0.85
executing_eagerlyFunction · 0.85

Tested by

no test coverage detected