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

tensorflow.python.framework.errors_impl.InvalidArgumentError #104

Open
shayan-h72 opened this issue Mar 9, 2022 · 1 comment
Open

tensorflow.python.framework.errors_impl.InvalidArgumentError #104

shayan-h72 opened this issue Mar 9, 2022 · 1 comment

Comments

@shayan-h72
Copy link

Thanks a lot for open-sourcing your source code.
When I tried your train.py code, I have a runtime error. The error in line 70 of the train.py file:

_, dists, out1, out2, out3 = sess.run ([model.opt_op, model.loss, model.output1, model.output2, model.output3], feed_dict = feed_dict)

The error is:

tensorflow.python.framework.errors_impl.InvalidArgumentError: indices [0,7] = -1 is not in [0, 157) [[node GatherV2_12 (defined at /.cifar/lib/python3.6/site-packages/tensorflow_core/python/framework/ops.py:1748)]]

Do you have any suggestions for solving it?

@chheu
Copy link

chheu commented Oct 23, 2024

Hello, I have the same question as you and I wonder if the problem has been solved

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