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

Function _get_output_ts

tensorflow/contrib/graph_editor/select.py:102–116  ·  view source on GitHub ↗

Compute the list of unique output tensors of all the op in ops. Args: ops: an object convertible to a list of tf.Operation. Returns: The list of unique output tensors of all the op in ops. Raises: TypeError: if ops cannot be converted to a list of tf.Operation.

(ops)

Source from the content-addressed store, hash-verified

100
101
102def _get_output_ts(ops):
103 """Compute the list of unique output tensors of all the op in ops.
104
105 Args:
106 ops: an object convertible to a list of tf.Operation.
107 Returns:
108 The list of unique output tensors of all the op in ops.
109 Raises:
110 TypeError: if ops cannot be converted to a list of tf.Operation.
111 """
112 ops = util.make_list_of_op(ops)
113 ts = []
114 for op in ops:
115 ts += op.outputs
116 return ts
117
118
119def filter_ts(ops, positive_filter):

Callers 2

filter_tsFunction · 0.85
compute_boundary_tsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected