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

Method _is_eager

tensorflow/python/ops/ragged/ragged_tensor.py:1816–1823  ·  view source on GitHub ↗

Returns True if values & row_splits Tensors are all `EagerTensor`s.

(self)

Source from the content-addressed store, hash-verified

1814 return value
1815
1816 def _is_eager(self):
1817 """Returns True if values & row_splits Tensors are all `EagerTensor`s."""
1818 rt = self
1819 while isinstance(rt, RaggedTensor):
1820 if not isinstance(rt.row_splits, ops.EagerTensor):
1821 return False
1822 rt = rt.values
1823 return isinstance(rt, ops.EagerTensor)
1824
1825 #=============================================================================
1826 # Indexing & Slicing

Callers 2

__repr__Method · 0.95
to_listMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected