title: tensorflow for poets: “The name 'import/Mul' refers to an Operation not in the graph.”
body: <p>İ try to use tensorflow image retraining. 
  <a href="https://www.tensorflow.org/tutorials/image_retraining" rel="noreferrer">https://www.tensorflow.org/tutorials/image_retraining</a></p>
  
  <p>train like that and it is OK:</p>
  
  <pre><code>D:\dev\Anaconda\python D:/dev/detect_objects/tensorflow-master/tensorflow/examples/image_retraining/retrain.py --image_dir D:/dev/detect_objects/flower_photos --bottleneck_dir D:/dev/detect_objects/tensorflow-master/retrain/bottleneck --architecture mobilenet_0.25_128 --output_graph D:/dev/detect_objects/tensorflow-master/retrain/output_graph/output.pb --output_labels D:/dev/detect_objects/tensorflow-master/retrain/output_labels/labels.txt --saved_model_dir D:/dev/detect_objects/tensorflow-master/retrain/saved_model_dir --how_many_training_steps 100
  </code></pre>
  
  <p>When predict new image like:</p>
  
  <pre><code>D:\dev\Anaconda\python D:/dev/detect_objects/tensorflow-master/tensorflow/examples/label_image/label_image.py --graph=D:/dev/detect_objects/tensorflow-master/retrain/output_graph/output.pb  --labels=D:/dev/detect_objects/tensorflow-master/retrain/output_labels/labels.txt --image=D:/dev/detect_objects/flower_photos/daisy/21652746_cc379e0eea_m.jpg
  </code></pre>
  
  <p>It gives error </p>
  
  <pre><code>KeyError: "The name 'import/Mul' refers to an Operation not in the graph."
  </code></pre>
  
  <p>label_image.py content:</p>
  
  <pre><code>  input_height = 299
    input_width = 299
    input_mean = 0
    input_std = 255
    #input_layer = "input"
    #output_layer = "InceptionV3/Predictions/Reshape_1"
  
    input_layer = "Mul"
    output_layer = "final_result"
  </code></pre>
  
  <p>What is the problem here?</p>