Dummy method to prevent a tensor from being used as a Python `bool`. This is the Python 2.x counterpart to `__bool__()` above. Raises: `TypeError`.
(self)
| 765 | self._disallow_bool_casting() |
| 766 | |
| 767 | def __nonzero__(self): |
| 768 | """Dummy method to prevent a tensor from being used as a Python `bool`. |
| 769 | |
| 770 | This is the Python 2.x counterpart to `__bool__()` above. |
| 771 | |
| 772 | Raises: |
| 773 | `TypeError`. |
| 774 | """ |
| 775 | self._disallow_bool_casting() |
| 776 | |
| 777 | def eval(self, feed_dict=None, session=None): |
| 778 | """Evaluates this tensor in a `Session`. |
nothing calls this directly
no test coverage detected