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.

tf.contrib.graph_editor.SubGraphView.remap_default()

tf.contrib.graph_editor.SubGraphView.remap_default(remove_input_map=True, remove_output_map=True) Remap the inputs and/or outputs to the default mapping. Args: remove_input_map: if True the input map is reset to the default one. remove_output_map: if True the output map is reset to the default one. Returns: A new modified instance of the original subgraph view with its input and/or output mapping reset to the default one.

tf.contrib.graph_editor.SubGraphView.remap()

tf.contrib.graph_editor.SubGraphView.remap(new_input_indices=None, new_output_indices=None) Remap the inputs and outputs of the subgraph. 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. new_output_indices: an iterable of integers representing a mapping between the old outputs an

tf.contrib.graph_editor.SubGraphView.passthroughs

tf.contrib.graph_editor.SubGraphView.passthroughs The passthrough tensors, going straight from input to output.

tf.contrib.graph_editor.SubGraphView.output_index()

tf.contrib.graph_editor.SubGraphView.output_index(t) Find the output index corresponding to given output tensor t. Args: t: the output tensor of this subgraph view. Returns: The index in the self.outputs list. Raises: Error: if t in not an output tensor.

tf.contrib.graph_editor.SubGraphView.outputs

tf.contrib.graph_editor.SubGraphView.outputs The output tensors of this subgraph view.

tf.contrib.graph_editor.SubGraphView.ops

tf.contrib.graph_editor.SubGraphView.ops The operations in this subgraph view.

tf.contrib.graph_editor.SubGraphView.op()

tf.contrib.graph_editor.SubGraphView.op(op_id) Get an op by its index.

tf.contrib.graph_editor.SubGraphView.is_passthrough()

tf.contrib.graph_editor.SubGraphView.is_passthrough(t) Check whether a tensor is passthrough.

tf.contrib.graph_editor.SubGraphView.input_index()

tf.contrib.graph_editor.SubGraphView.input_index(t) Find the input index corresponding to the given input tensor t. Args: t: the input tensor of this subgraph view. Returns: The index in the self.inputs list. Raises: Error: if t in not an input tensor.