Modifications in evaluate.py for other architectures (KeyError: "The name 'final_training_ops/Wx_plus_b/add:0' refers to a Tensor which does not exist.) #63
There's another script for training as mentioned in hub/examples/image_retraining/retrain.py. So when I used that script for training after some modifications, how should I modify the line 41 in evaluate.pylogits = graph.get_tensor_by_name("final_training_ops/Wx_plus_b/add:0"). I'm getting KeyError: "The name 'final_training_ops/Wx_plus_b/add:0' refers to a Tensor which does not exist. The operation, 'final_training_ops/Wx_plus_b/add', does not exist in the graph."
I figured this out myself. Given a .pb file, we can view the operations in frozen .pb TensorFlow graphs using this code. So, we need to replace the line 41 with the last operation according to our .pb file.
There's another script for training as mentioned in hub/examples/image_retraining/retrain.py. So when I used that script for training after some modifications, how should I modify the line 41 in evaluate.py
logits = graph.get_tensor_by_name("final_training_ops/Wx_plus_b/add:0")
. I'm gettingKeyError: "The name 'final_training_ops/Wx_plus_b/add:0' refers to a Tensor which does not exist. The operation, 'final_training_ops/Wx_plus_b/add', does not exist in the graph."