Type ISubGraphView
Namespace tensorflow.contrib.graph_editor
Interfaces IPythonObjectContainer
Methods
- copy
- find_op_by_name
- input_index
- is_passthrough
- op
- output_index
- remap
- remap_default
- remap_inputs
- remap_outputs
- remove_unused_ops
Properties
Public instance methods
object copy()
Return a copy of itself. Note that this class is a "view", copying it only create another view and
does not copy the underlying part of the tf.Graph.
Returns
-
object
- A new instance identical to the original one.
object find_op_by_name(object op_name)
Return the op named op_name.
Parameters
-
object
op_name - the name to search for
Returns
-
object
- The op named op_name.
object input_index(object t)
Find the input index corresponding to the given input tensor t.
Parameters
-
object
t - the input tensor of this subgraph view.
Returns
-
object
- The index in the self.inputs list.
object is_passthrough(object t)
Check whether a tensor is passthrough.
object op(object op_id)
Get an op by its index.
object output_index(object t)
Find the output index corresponding to given output tensor t.
Parameters
-
object
t - the output tensor of this subgraph view.
Returns
-
object
- The index in the self.outputs list.