-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: Layer question_attn_gru_1 expects 2 inputs, but it received 7 input tensors #13
Comments
We have a problem with Keras > 2.0.8. |
switching to 2.06 avoided that issue - now this error has come up still using your model Thanks |
That error occurred because QuestionPooling layer was updated in later commits to be consistent with R-Net paper. However the provided model was built with previous implementation. To avoid this error and use the model without errors run the following command |
Ok, prediction script worked with patch on the complete dataset Then I wanted to just check one topic - super_bowl_50 - cut the input to just have super_bowl_50 passage and questions - parsed and preprocessed - looks like some keras compatibility issue or your implementation requires complete data set prediction script had this error Preparing model...Done! |
Have you included char-level-embeddings while parsing? As far as I understand the model that you are trying to run requires them (vectors + embeddings => 4 arrays) |
I used your trained model and ran predict script after following 2 steps:
But I am getting following error: File "predict.py", line 54, in What needs to be done. Thanks |
@shwetgarg - had the same set of errors. Were you able to solve the last error? Thanks |
@shwetgarg I am also getting the same error. Could you resolve the issue? |
I have similar error with Keras 2.3.1. |
+1 |
Hi /usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/training.py:805 train_function *
Can you guide me? |
@sarahosini i'm havinf the same problem. did you get it resolved? |
@sarahosini, I am facing the same issue! any solution found for this error! |
@sarahosini, I am also getting the same error. Has any solution been found for this! |
Hi,
I used your trained model and ran predict script - I get the the above errror
ValueError: Layer question_attn_gru_1 expects 2 inputs, but it received 7 input tensors. Input received: [<tf.Tensor 'uP/cond/Merge:0' shape=(?, ?, 90) dtype=float32>, <tf.Tensor 'uQ/cond/Merge:0' shape=(?, ?, 90) dtype=float32>, <tf.Tensor 'mul:0' shape=(90, 45) dtype=float32>, <tf.Tensor 'mul_1:0' shape=(45, 45) dtype=float32>, <tf.Tensor 'mul_2:0' shape=(90, 45) dtype=float32>, <tf.Tensor 'mul_3:0' shape=(45, 1) dtype=float32>, <tf.Tensor 'mul_4:0' shape=(180, 180) dtype=float32>]
what needs to be done
Thanks
The text was updated successfully, but these errors were encountered: