TensorFlow 2.0 RC is available Learn more

tf.contrib.graph_editor.swap_inputs

View source on GitHub

Swap all the inputs of sgv0 and sgv1 (see reroute_inputs).

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