tf.contrib.graph_editor.select_ts()

tf.contrib.graph_editor.select_ts(*args, **kwargs) Helper to select tensors. Args: *args: list of 1) regular expressions (compiled or not) or 2) (array of) tf.Tensor. tf.Operation instances are silently ignored. **kwargs: 'graph': tf.Graph in which to perform the regex query.This is required when using regex. 'positive_filter': an elem if selected only if positive_filter(elem) is True. This is optional. 'restrict_ts_regex': a regular expression is ignored if it doesn't start with the substri

tf.contrib.graph_editor.select_ops_and_ts()

tf.contrib.graph_editor.select_ops_and_ts(*args, **kwargs) Helper to select operations and tensors. Args: *args: list of 1) regular expressions (compiled or not) or 2) (array of) tf.Operation 3) (array of) tf.Tensor. Regular expressions matching tensors must start with the comment "(?#ts)", for instance: "(?#ts)^foo/.*". **kwargs: 'graph': tf.Graph in which to perform the regex query.This is required when using regex. 'positive_filter': an elem if selected only if positive_filter(elem) is Tr

tf.contrib.graph_editor.select_ops()

tf.contrib.graph_editor.select_ops(*args, **kwargs) Helper to select operations. Args: *args: list of 1) regular expressions (compiled or not) or 2) (array of) tf.Operation. tf.Tensor instances are silently ignored. **kwargs: 'graph': tf.Graph in which to perform the regex query.This is required when using regex. 'positive_filter': an elem if selected only if positive_filter(elem) is True. This is optional. 'restrict_ops_regex': a regular expression is ignored if it doesn't start with the su

tf.contrib.graph_editor.reroute_b2a_ts()

tf.contrib.graph_editor.reroute_b2a_ts(ts0, ts1, can_modify=None, cannot_modify=None) For each tensor's pair, replace the end of t0 by the end of t1. B0 B1 B0 B1 | | => | A0 A1 A0 A1 The end of the tensors in ts0 are left dangling. Args: ts0: an object convertible to a list of tf.Tensor. ts1: an object convertible to a list of tf.Tensor. can_modify: iterable of operations which can be modified. Any operation outside within_ops will be left untouched by this function. cannot_modify: iter

tf.contrib.graph_editor.reroute_b2a_outputs()

tf.contrib.graph_editor.reroute_b2a_outputs(sgv0, sgv1) Re-route all the outputs of sgv1 to sgv0 (see _reroute_outputs).

tf.contrib.graph_editor.reroute_b2a_inputs()

tf.contrib.graph_editor.reroute_b2a_inputs(sgv0, sgv1) Re-route all the inputs of sgv1 to sgv0 (see reroute_inputs).

tf.contrib.graph_editor.reroute_b2a()

tf.contrib.graph_editor.reroute_b2a(sgv0, sgv1) Re-route the inputs and outputs of sgv1 to sgv0 (see _reroute).

tf.contrib.graph_editor.reroute_a2b_ts()

tf.contrib.graph_editor.reroute_a2b_ts(ts0, ts1, can_modify=None, cannot_modify=None) For each tensor's pair, replace the end of t1 by the end of t0. B0 B1 B0 B1 | | => |/ A0 A1 A0 A1 The end of the tensors in ts1 are left dangling. Args: ts0: an object convertible to a list of tf.Tensor. ts1: an object convertible to a list of tf.Tensor. can_modify: iterable of operations which can be modified. Any operation outside within_ops will be left untouched by this function. cannot_modify: ite

tf.contrib.graph_editor.reroute_a2b_outputs()

tf.contrib.graph_editor.reroute_a2b_outputs(sgv0, sgv1) Re-route all the outputs of sgv0 to sgv1 (see _reroute_outputs).

tf.contrib.graph_editor.reroute_a2b_inputs()

tf.contrib.graph_editor.reroute_a2b_inputs(sgv0, sgv1) Re-route all the inputs of sgv0 to sgv1 (see reroute_inputs).