# tf.contrib.graph_editor.swap_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#L394-L396) |

Swap all the inputs of sgv0 and sgv1 (see reroute_inputs).

    tf.contrib.graph_editor.swap_inputs(
        sgv0, sgv1
    )