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

Method is_fetchable

tensorflow/python/framework/ops.py:4957–4962  ·  view source on GitHub ↗

Returns `True` if and only if `tensor_or_op` is fetchable.

(self, tensor_or_op)

Source from the content-addressed store, hash-verified

4955 self._unfetchable_ops.add(op)
4956
4957 def is_fetchable(self, tensor_or_op):
4958 """Returns `True` if and only if `tensor_or_op` is fetchable."""
4959 if isinstance(tensor_or_op, Tensor):
4960 return tensor_or_op.op not in self._unfetchable_ops
4961 else:
4962 return tensor_or_op not in self._unfetchable_ops
4963
4964 def switch_to_thread_local(self):
4965 """Make device, colocation and dependencies stacks thread-local.

Callers 5

testPreventFetchingMethod · 0.95
_assert_fetchableMethod · 0.80
all_fetchablesFunction · 0.80
testFetchableMethod · 0.80

Calls

no outgoing calls

Tested by 4

testPreventFetchingMethod · 0.76
all_fetchablesFunction · 0.64
testFetchableMethod · 0.64