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 in char_rep_method #2

Closed
aopusd opened this issue Mar 13, 2018 · 4 comments
Closed

InvalidArgumentError in char_rep_method #2

aopusd opened this issue Mar 13, 2018 · 4 comments

Comments

@aopusd
Copy link

aopusd commented Mar 13, 2018

tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[7,11,0] = 5981 is not in [0, 5980)
[[Node: char_rep_method/char_embeddings = Gather[Tindices=DT_INT32, Tparams=DT_FLOAT, _class=["loc:@char_rep_method/_char_embeddings"], validate_indices=true, _device="/job:localhost/replica:0/task:0/device:CPU:0"](char_rep_method/_char_embeddings/read, _arg_char_ids_0_0)]]
Caused by op 'char_rep_method/char_embeddings', defined at:

@26hzhang
Copy link
Owner

@aopusd I update the codes, and rewrite the reshape methods, I am not sure why this happens, can you give more details? I remember you also email to me right? To deal with Chinese dataset?

@26hzhang 26hzhang changed the title tensorflow.python.framework.errors_impl.InvalidArgumentError: indices[7,11,0] = 5981 is not in [0, 5980) [[Node: char_rep_method/char_embeddings = Gather[Tindices=DT_INT32, Tparams=DT_FLOAT, InvalidArgumentError in char_rep_method Mar 16, 2018
@aopusd
Copy link
Author

aopusd commented Mar 16, 2018 via email

@26hzhang
Copy link
Owner

26hzhang commented Mar 16, 2018 via email

@aopusd
Copy link
Author

aopusd commented Mar 16, 2018 via email

@26hzhang 26hzhang closed this as completed Dec 3, 2018
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

2 participants