You can do

```
[n.name for n in tf.get_default_graph().as_graph_def().node]
```

Also, if you are prototyping in an IPython notebook, you can show the graph directly in notebook, see `show_graph`

function in Alexander’s Deep Dream notebook

You can do

```
[n.name for n in tf.get_default_graph().as_graph_def().node]
```

Also, if you are prototyping in an IPython notebook, you can show the graph directly in notebook, see `show_graph`

function in Alexander’s Deep Dream notebook