You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on May 28, 2022. It is now read-only.
tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[4,0] = 10000 is not in [0, 10000) #1
Found the error. I used an wrong input_dim. It should be maximum integer index + 1 as explained in the Keras documentation and I just used the maximum integer index.
Sorry for not answering earlier but I completely overlooked the issues. Furthermore it looks like this error only occurres when using a CPU and therefore it worked just fine for me. Now(after the bug fix) I tried it with both CPU and GPU and it works fine for me.
Hi @TannerGilbert,
First of all, thanks for the notebook, it's very helpful. I got the same error while trying to run the code.
Below are some details about my dataset and dimensions which I was passing. I tried to use the dot product example(method 1).
This error occurres when using the false input_dim for the embedding layers. The input_dim attribute for the embedding layer in Keras is defined as follows:
input_dim: int > 0. Size of the vocabulary, i.e. maximum integer index + 1.
Maybe you need to add 1 as indicated above. Check out this stackoverflow post for more information.
Hi Gilbert,
Have u encountered this problem? i have not changed ur codes, and run it on local.
Thanks