title: restoring weights of an already saved Tensorflow .pb model
body: <p>I have seen many posts about restoring an already saved TF models here, but none could answer my question. <code>Using TF 1.0.0</code></p>
  
  <p>Specifically, I am interested in seeing the weights for <code>inceptionv3</code> model which is publicly available in <code>.pb</code> file <a href="https://storage.googleapis.com/download.tensorflow.org/models/tensorflow_inception_v3_stripped_optimized_quantized.pb" rel="nofollow noreferrer">here</a>. I managed to restore it back using a small chunk of Python code and can access the graphs high-level view in <code>tensorboard</code>:</p>
  
  <pre><code>from tensorflow.python.platform import gfile
  
  INCEPTION_LOG_DIR = '/tmp/inception_v3_log'
  
  if not os.path.exists(INCEPTION_LOG_DIR):
      os.makedirs(INCEPTION_LOG_DIR)
  with tf.Session() as sess:
      model_filename = './model/tensorflow_inception_v3_stripped_optimized_quantized.pb'
      with gfile.FastGFile(model_filename, 'rb') as f:
          graph_def = tf.GraphDef()
          graph_def.ParseFromString(f.read())
          _= tf.import_graph_def(graph_def,name='')
      writer = tf.train.SummaryWriter(INCEPTION_LOG_DIR, graph_def)
      writer=tf.summary.FileWriter(INCEPTION_LOG_DIR, graph_def)
      writer.close()
  </code></pre>
  
  <p>However, I failed to access any layers' weights. </p>
  
  <pre><code>tensors= tf.import_graph_def(graph_def,name='')
  </code></pre>
  
  <p>returns empty, even if I add the arbitrary <code>return_elements=</code>. Does it have any weights at all? If yes, what is the appropriate procedure here? Thanks. </p>