(self)
| 684 | return "%s:%d" % (self._op.name, self._value_index) |
| 685 | |
| 686 | def _as_tf_output(self): |
| 687 | # pylint: disable=protected-access |
| 688 | # NOTE: Beyond preventing unnecessary (re-)allocation, the cached object |
| 689 | # also guarantees that a dictionary of tf_output objects will retain a |
| 690 | # deterministic (yet unsorted) order which prevents memory blowup in the |
| 691 | # cache of executor(s) stored for every session. |
| 692 | if self._tf_output is None: |
| 693 | self._tf_output = c_api_util.tf_output(self.op._c_op, self.value_index) |
| 694 | return self._tf_output |
| 695 | # pylint: enable=protected-access |
| 696 | |
| 697 | def __str__(self): |
| 698 | return "Tensor(\"%s\"%s%s%s)" % ( |
no outgoing calls
no test coverage detected