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

Method consumers

tensorflow/contrib/graph_editor/subgraph.py:587–601  ·  view source on GitHub ↗

Return a Python set of all the consumers of this subgraph view. A consumer of a subgraph view is a tf.Operation which is a consumer of one of the output tensors and is not in the subgraph. Returns: A list of `tf.Operation` which are the consumers of this subgraph view.

(self)

Source from the content-addressed store, hash-verified

585 return subgraph_id
586
587 def consumers(self):
588 """Return a Python set of all the consumers of this subgraph view.
589
590 A consumer of a subgraph view is a tf.Operation which is a consumer
591 of one of the output tensors and is not in the subgraph.
592
593 Returns:
594 A list of `tf.Operation` which are the consumers of this subgraph view.
595 """
596 ops_set = frozenset(self._ops)
597 res = []
598 for output in self._output_ts:
599 consumers = [op for op in output.consumers() if op not in ops_set]
600 util.concatenate_unique(res, consumers)
601 return res
602
603
604def _check_graph(sgv, graph):

Callers 15

get_ops_iosFunction · 0.45
compute_boundary_tsFunction · 0.45
get_forward_walk_opsFunction · 0.45
_reroute_tsFunction · 0.45
get_consuming_opsFunction · 0.45
detach_outputsFunction · 0.45
__call__Method · 0.45
RerouteTensorFunction · 0.45

Calls

no outgoing calls