tf.contrib.graph_editor.get_backward_walk_ops(seed_ops, inclusive=True, within_ops=None, stop_at_ts=(), control_inputs=False)
Do a backward graph walk and return all the visited ops.
Args:
-
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. -
inclusive
: if True the given seed_ops are also part of the resulting set. -
within_ops
: an iterable of tf.Operation whithin which the search is restricted. If within_ops is None, the search is performed within the whole graph. -
stop_at_ts
: an iterable of tensors at which the graph walk stops. -
control_inputs
: if True, control inputs will be used while moving backward.
Returns:
A Python set of all the tf.Operation behind seed_ops.
Raises:
-
TypeError
: if seed_ops or within_ops cannot be converted to a list of tf.Operation.
Please login to continue.