Returns a list of `Operation`s that consume this tensor. Returns: A list of `Operation`s.
(self)
| 650 | return self._value_index |
| 651 | |
| 652 | def consumers(self): |
| 653 | """Returns a list of `Operation`s that consume this tensor. |
| 654 | |
| 655 | Returns: |
| 656 | A list of `Operation`s. |
| 657 | """ |
| 658 | consumer_names = c_api.TF_OperationOutputConsumers_wrapper( |
| 659 | self._as_tf_output()) |
| 660 | # pylint: disable=protected-access |
| 661 | return [ |
| 662 | self.graph._get_operation_by_name_unsafe(name) |
| 663 | for name in consumer_names |
| 664 | ] |
| 665 | # pylint: enable=protected-access |
| 666 | |
| 667 | def _as_node_def_input(self): |
| 668 | """Return a value to use for the NodeDef "input" attribute. |