Announcing the TensorFlow Dev Summit 2020 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
)