tf.contrib.graph_editor.SubGraphView.remap_inputs()

tf.contrib.graph_editor.SubGraphView.remap_inputs(new_input_indices)

Remap the inputs of the subgraph.

If the inputs of the original subgraph are [t0, t1, t2], remapping to [2,0] will create a new instance whose inputs is [t2, t0].

Note that this is only modifying the view: the underlying tf.Graph is not affected.

Args:
  • new_input_indices: an iterable of integers representing a mapping between the old inputs and the new ones. This mapping can be under-complete and must be without repetitions.
Returns:

A new modified instance of the original subgraph view with remapped inputs.

doc_TensorFlow
2016-10-14 13:05:14
Comments
Leave a Comment

Please login to continue.