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

Function _device_stack_is_empty

tensorflow/python/data/ops/iterator_ops.py:65–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63
64
65def _device_stack_is_empty():
66 if context.executing_eagerly():
67 return context.context().device_name is None
68 # pylint: disable=protected-access
69 device_stack = ops.get_default_graph()._device_functions_outer_to_inner
70 # pylint: enable=protected-access
71 return not bool(device_stack)
72
73
74@tf_export(v1=["data.Iterator"])

Callers 3

from_structureMethod · 0.85
from_string_handleMethod · 0.85
__init__Method · 0.85

Calls 2

executing_eagerlyMethod · 0.80
contextMethod · 0.45

Tested by

no test coverage detected