()
| 63 | |
| 64 | |
| 65 | def _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"]) |
no test coverage detected