title: How to find the output node name of given .ckpt.meta file in tensorflow
body: <p>So far I can get the list of all node names given any .ckpt.meta file, but I was wondering if there is a systematic way of finding out the output node name from the list.</p>
  
  <pre><code>import tensorflow as tf
  
  tf.reset_default_graph()
  with tf.Session() as sess:
      saver = tf.train.import_meta_graph('mymodel.ckpt.meta')
      graph_def = tf.get_default_graph().as_graph_def()
      node_list=[n.name for n in graph_def.node]
  </code></pre>