# tf.contrib.graph_editor.get_consuming_ops

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/graph_editor/util.py#L319-L335) |

Return all the consuming ops of the tensors in ts.

    tf.contrib.graph_editor.get_consuming_ops(
        ts
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `ts` | a list of [`tf.Tensor`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Tensor) |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A list of all the consuming [`tf.Operation`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Operation) of the tensors in `ts`. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `TypeError` | if ts cannot be converted to a list of [`tf.Tensor`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Tensor). |

<br />