# tf.contrib.graph_editor.add_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#L481-L500) |

Add the control inputs cops to op.

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

> [!WARNING]
> **Warning:** this function is directly manipulating the internals of the tf.Graph.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `op` | a tf.Operation to which the control inputs are added. |
| `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 |
| `ValueError` | if any cop in cops is already a control input of op. |

<br />