# tf.contrib.graph_editor.make_view

<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/subgraph.py#L629-L655) |

Create a SubGraphView from selected operations and passthrough tensors.

#### View aliases


**Main aliases**

\`tf.contrib.graph_editor.sgv\`

<br />

    tf.contrib.graph_editor.make_view(
        *args, **kwargs
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `*args` | list of 1) regular expressions (compiled or not) or 2) (array of) [`tf.Operation`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Operation) 3) (array of) [`tf.Tensor`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Tensor). Those objects will be converted into a list of operations and a list of candidate for passthrough tensors. |
| `**kwargs` | keyword graph is used 1) to check that the ops and ts are from the correct graph 2) for regular expression query |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A subgraph view. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `TypeError` | if the optional keyword argument graph is not a [`tf.Graph`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Graph) or if an argument in args is not an (array of) [`tf.Tensor`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Tensor) or an (array of) [`tf.Operation`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/Operation) or a string or a regular expression. |
| `ValueError` | if one of the keyword arguments is unexpected. |

<br />