# tf.contrib.graph_editor.remove_control_inputs

<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/reroute.py#L454-L477) |

Remove the control inputs cops from co.

    tf.contrib.graph_editor.remove_control_inputs(
        op, cops
    )

> [!WARNING]
> **Warning:** this function is directly manipulating the internals of the [`tf.Graph`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Graph).

<br />

<br />

<br />

| ## Args ||
|---|---|
| `op` | a [`tf.Operation`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Operation) from which to remove the control inputs. |
| `cops` | an object convertible to a list of [`tf.Operation`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Operation). |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `TypeError` | if op is not a [`tf.Operation`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Operation). |
| `ValueError` | if any cop in cops is not a control input of op. |

<br />