Returns True if values & row_splits Tensors are all `EagerTensor`s.
(self)
| 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 |