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

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

tf.contrib.graph_editor.ControlOutputs.get()

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

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.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.add_control_inputs()

tf.contrib.graph_editor.add_control_inputs(op, cops) Add the control inputs cops to co. Warning: this function is directly manipulating the internals of the tf.Graph. Args: op: a tf.Operation to which the control inputs are added. cops: an object convertible to a list of tf.Operation. Raises: TypeError: if op is not a tf.Operation ValueError: if any cop in cops is already a control input of op.

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.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