# tf.contrib.graph_editor.swap_outputs

<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#L419-L421) |

Swap all the outputs of sgv0 and sgv1 (see reroute_outputs).

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