Skip to content
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

InvalidArgumentError: indices[127,2] = 5388 is not in [0, 5388) [[{{node embedding_1/embedding_lookup}}]] #3

Open
deepufrk opened this issue Jun 28, 2019 · 2 comments

Comments

@deepufrk
Copy link

deepufrk commented Jun 28, 2019

plz provide the version keras

@AnushaS06
Copy link

Even I am facing the same issue.
InvalidArgumentError: indices[59,0] = 9517 is not in [0, 9517)
[[{{node embedding_1/embedding_lookup}}]]

@mengweetan
Copy link

For both embedding layers, need to add 1 to num_decoder_tokens. That's how I solved mine.

dec_emb_layer = Embedding(num_decoder_tokens +1 , latent_dim, mask_zero = True)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants