-
Notifications
You must be signed in to change notification settings - Fork 197
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
why there is KeyError: -1 in prediction #28
Comments
Which tensorflow version are you using? |
hi @dongjun-Lee thanks for your response, I am using tensorflow==1.4.1. |
Hi @tianke0711 , it seems the error occurs because of your tensorflow version. Could you please try after upgrading tensorflow to >=1.8? |
thanks for your kind comments. If I have issues, I will contact you. |
I am also getting a similar error
|
Has upgrading to a higher version of tensorflow worked? |
Were you able to resolve the issue? If so, how? |
when code run here::
prediction_output = [[reversed_dict[y] for y in x] for x in prediction[:, 0, :]]
there is error:
KeyError Traceback (most recent call last)
in
27 print('prediction:', prediction.shape)
28
---> 29 prediction_output = [[reversed_dict[y] for y in x] for x in prediction[:, 0, :]]
30
31
in (.0)
27 print('prediction:', prediction.shape)
28
---> 29 prediction_output = [[reversed_dict[y] for y in x] for x in prediction[:, 0, :]]
30
31
in (.0)
27 print('prediction:', prediction.shape)
28
---> 29 prediction_output = [[reversed_dict[y] for y in x] for x in prediction[:, 0, :]]
30
31
KeyError: -1
The text was updated successfully, but these errors were encountered: