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)
| 303 | |
| 304 | |
| 305 | def get_generating_ops(ts): |
| 306 | """Return all the generating ops of the tensors in `ts`. |
| 307 | |
| 308 | Args: |
| 309 | ts: a list of `tf.Tensor` |
| 310 | Returns: |
| 311 | A list of all the generating `tf.Operation` of the tensors in `ts`. |
| 312 | Raises: |
| 313 | TypeError: if `ts` cannot be converted to a list of `tf.Tensor`. |
| 314 | """ |
| 315 | ts = make_list_of_t(ts, allow_graph=False) |
| 316 | return [t.op for t in ts] |
| 317 | |
| 318 | |
| 319 | def get_consuming_ops(ts): |
nothing calls this directly
no test coverage detected