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

Method consumers

tensorflow/python/framework/ops.py:652–665  ·  view source on GitHub ↗

Returns a list of `Operation`s that consume this tensor. Returns: A list of `Operation`s.

(self)

Source from the content-addressed store, hash-verified

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.

Callers 15

_skip_tensorMethod · 0.45
_trace_executionMethod · 0.45
topological_sortFunction · 0.45
_assertNotAccumulatedMethod · 0.45
check_consumersFunction · 0.45
find_boundery_tensorsFunction · 0.45
add_tile_opFunction · 0.45

Calls 2

_as_tf_outputMethod · 0.95

Tested by 10

_assertNotAccumulatedMethod · 0.36
check_consumersFunction · 0.36
testNoInputsMethod · 0.36
testNoOutputsMethod · 0.36
testInputsAndOutputsMethod · 0.36
testUpdateInputMethod · 0.36
testBasicMethod · 0.36