你可以做
[n.name for n in tf.get_default_graph().as_graph_def().node]
另外,如果您要在IPython笔记本中进行原型制作,则可以直接在笔记本中显示图形,请参见
show_graphAlexander’s Deep
Dream笔记本中的功能

你可以做
[n.name for n in tf.get_default_graph().as_graph_def().node]
另外,如果您要在IPython笔记本中进行原型制作,则可以直接在笔记本中显示图形,请参见
show_graphAlexander’s Deep