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)
| 100 | |
| 101 | |
| 102 | def _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 | |
| 119 | def filter_ts(ops, positive_filter): |
no outgoing calls
no test coverage detected