I was following the codelabs tensorflow for poets and the training worked fine but when I runned the script to evaluate a image:
python -m scripts.label_imag
Use --input_layer name as Placeholder. It will work because the retrain.py script has set default value of input_layer as "Placeholder".
python label_image.py --graph=retrained_graph.pb --labels=retrained_labels.txt --output_layer=final_result --image=testimage654165.jpg --input_layer=Placeholder