print op names of graph def code example Example: tensorflow all nodes [n.name for n in tf.get_default_graph().as_graph_def().node]