Return all the generating ops of the tensors in `ts`. Args: ts: a list of `tf.Tensor` Returns: A list of all the generating `tf.Operation` of the tensors in `ts`. Raises: TypeError: if `ts` cannot be converted to a list of `tf.Tensor`.
(ts)
| 162 | |
| 163 | |
| 164 | def get_generating_ops(ts): |
| 165 | """Return all the generating ops of the tensors in `ts`. |
| 166 | |
| 167 | Args: |
| 168 | ts: a list of `tf.Tensor` |
| 169 | Returns: |
| 170 | A list of all the generating `tf.Operation` of the tensors in `ts`. |
| 171 | Raises: |
| 172 | TypeError: if `ts` cannot be converted to a list of `tf.Tensor`. |
| 173 | """ |
| 174 | ts = make_list_of_t(ts, allow_graph=False) |
| 175 | return [t.op for t in ts] |
| 176 | |
| 177 | |
| 178 | def get_consuming_ops(ts): |
no test coverage detected