tf.contrib.graph_editor.get_walks_intersection_ops(forward_seed_ops, backward_seed_ops, forward_inclusive=True, backward_inclusive=True, within_ops=None, control_inputs=False, control_outputs=None, control_ios=None)
See the guide: Graph Editor (contrib) > Module: select
Return the intersection of a forward and a backward walk.
forward_seed_ops
: an iterable of operations from which the forward graph walk starts. If a list of tensors is given instead, the seed_ops are set to be the consumers of those tensors.backward_seed_ops
: an iterable of operations from which the backward graph walk starts. If a list of tensors is given instead, the seed_ops are set to be the generators of those tensors.forward_inclusive
: if True the given forward_seed_ops are also part of the resulting set.backward_inclusive
: if True the given backward_seed_ops are also part of the resulting set.within_ops
: an iterable of tf.Operation within which the search is restricted. If within_ops is None, the search is performed within the whole graph.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_inputs to True and control_outputs to the util.ControlOutputs instance. Returns: A Python set of all the tf.Operation in the intersection of a forward and a backward walk. Raises:TypeError
: if forward_seed_ops
or backward_seed_ops
or within_ops
cannot be converted to a list of tf.Operation
.Defined in tensorflow/contrib/graph_editor/select.py
.
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/graph_editor/get_walks_intersection_ops