TensorFlow 2.0 RC is available Learn more

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
)