tf.contrib.graph_editor.SubGraphView.remap_outputs()

tf.contrib.graph_editor.SubGraphView.remap_outputs(new_output_indices)

Remap the output of the subgraph.

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

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

Args:
  • new_output_indices: an iterable of integers representing a mapping between the old outputs and the new ones. This mapping can be under-complete and can have repetitions.
Returns:

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

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

Please login to continue.