# tf.contrib.util.ops_used_by_graph_def

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/python/framework/meta_graph.py#L138-L171) |

Collect the list of ops used by a graph.

    tf.contrib.util.ops_used_by_graph_def(
        graph_def
    )

Does not validate that the ops are all registered.

<br />

<br />

<br />

| ## Args ||
|---|---|
| `graph_def` | A `GraphDef` proto, as from `graph.as_graph_def()`. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| A list of strings, each naming an op used by the graph. ||

<br />