# tf.contrib.graph_editor.get_backward_walk_ops

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/graph_editor/select.py#L459-L496) |

Do a backward graph walk and return all the visited ops. (deprecated)

    tf.contrib.graph_editor.get_backward_walk_ops(
        seed_ops, inclusive=True, within_ops=None, within_ops_fn=None, stop_at_ts=(),
        control_inputs=False
    )

> [!WARNING]
> **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed after 2019-06-06. Instructions for updating: Please use tensorflow.python.ops.op_selector.get_backward_walk_ops.

<br />

<br />

<br />

| ## 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`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Operation) within which the search is restricted. If `within_ops` is `None`, the search is performed within the whole graph. |
| `within_ops_fn` | if provided, a function on ops that should return True iff the op is within the graph traversal. This can be used along within_ops, in which case an op is within if it is also in within_ops. |
| `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. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A Python set of all the [`tf.Operation`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Operation) behind `seed_ops`. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `TypeError` | if `seed_ops` or `within_ops` cannot be converted to a list of [`tf.Operation`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Operation). |

<br />