Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

tf.contrib.graph_editor.swap_outputs

View source on GitHub

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

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