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

tf.contrib.graph_editor.swap_ios

View source on GitHub

Swap the inputs and outputs of sgv1 to sgv0 (see _reroute_sgv).

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