tf.contrib.graph_editor.ControlOutputs.update()

tf.contrib.graph_editor.ControlOutputs.update() Update the control outputs if the graph has changed.

tf.contrib.graph_editor.ControlOutputs.graph

tf.contrib.graph_editor.ControlOutputs.graph

tf.contrib.graph_editor.ControlOutputs.get_all()

tf.contrib.graph_editor.ControlOutputs.get_all()

tf.contrib.graph_editor.ControlOutputs.get()

tf.contrib.graph_editor.ControlOutputs.get(op) return the control outputs of op.

tf.contrib.graph_editor.ControlOutputs

class tf.contrib.graph_editor.ControlOutputs The control outputs topology.

tf.contrib.graph_editor.connect()

tf.contrib.graph_editor.connect(sgv0, sgv1, disconnect_first=False) Connect the outputs of sgv0 to the inputs of sgv1. Args: sgv0: the first subgraph to have its outputs swapped. This argument is converted to a subgraph using the same rules as the function subgraph.make_view. Note that sgv0 is modified in place. sgv1: the second subgraph to have its outputs swapped. This argument is converted to a subgraph using the same rules as the function subgraph.make_view. Note that sgv1 is modified in

tf.contrib.graph_editor.compute_boundary_ts()

tf.contrib.graph_editor.compute_boundary_ts(ops, ambiguous_ts_are_outputs=True) Compute the tensors at the boundary of a set of ops. This function looks at all the tensors connected to the given ops (in/out) and classify them into three categories: 1) input tensors: tensors whose generating operation is not in ops. 2) output tensors: tensors whose consumer operations are not in ops 3) inside tensors: tensors which are neither input nor output tensors. Args: ops: an object convertible to a lis

tf.contrib.graph_editor.check_cios()

tf.contrib.graph_editor.check_cios(control_inputs=False, control_outputs=None, control_ios=None) Do various check on control_inputs and control_outputs. Args: control_inputs: A boolean indicating whether control inputs are enabled. control_outputs: An instance of util.ControlOutputs or None. If not None, control outputs are enabled. control_ios: An instance of util.ControlOutputs or None. If not None, both control inputs and control outputs are enabled. This is equivalent to set control_inp

tf.contrib.graph_editor.bypass()

tf.contrib.graph_editor.bypass(sgv) Bypass the given subgraph by connecting its inputs to its outputs. Args: sgv: the subgraph view to be bypassed. This argument is converted to a subgraph using the same rules than the function subgraph.make_view. Note that sgv is modified in place. Returns: A tuple (sgv, detached_inputs) where: sgv is a new subgraph view of the bypassed subgraph; detached_inputs is a list of the created input placeholders. Raises: StandardError: if sgv cannot be converted

tf.contrib.graph_editor.assign_renamed_collections_handler()

tf.contrib.graph_editor.assign_renamed_collections_handler(info, elem, elem_) Add the transformed elem to the (renamed) collections of elem. Args: info: Transform._Info instance. elem: the original element (tf.Tensor or tf.Operation) elem_: the transformed element