title: unable to use Trained Tensorflow model
body: <p>I am new to Deep Learning and Tensorflow. I retrained a pretrained tensorflow <i> inceptionv3</i> model as <em>saved_model.pb</em> to recognize different type of images but when I tried to use the fie with below code.</p>
  
  <pre><code>with tf.Session() as sess:
      with tf.gfile.FastGFile("tensorflow/trained/saved_model.pb",'rb') as  f:
          graph_def = tf.GraphDef()
          tf.Graph.as_graph_def()
          graph_def.ParseFromString(f.read())
          g_in=tf.import_graph_def(graph_def)
          LOGDIR='/log'
          train_writer=tf.summary.FileWriter(LOGDIR)
          train_writer.add_graph(sess.graph)
  </code></pre>
  
  <p>it gives me this error - </p>
  
  <pre><code> File "testing.py", line 7, in &lt;module&gt;
  graph_def.ParseFromString(f.read())
  google.protobuf.message.DecodeError: Error parsing message
  </code></pre>
  
  <p>I tried many solution I can find for this problem and modules in <i>tensorflow/python/tools</i> which uses the <i>graph_def.ParseFromString(f.read())</i> function are giving me same error. Please tell me how to solve this or tell me the way in which I can avoid <i> ParseFromString(f.read())</i> function. Any help would be appreciated. Thank you!</p>