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

Internal Error encountered during indexing #9

Closed
kailaix opened this issue Sep 1, 2019 · 1 comment
Closed

Internal Error encountered during indexing #9

kailaix opened this issue Sep 1, 2019 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@kailaix
Copy link
Owner

kailaix commented Sep 1, 2019

For example, the following code will throw InternalError

using ADCME
x = placeholder(Int64, shape=[nothing])
a = constant(rand(10,2))
sess = Session(); init(sess)
run(sess, a[x], Dict(x=>[1;2;3]))
@kailaix kailaix added the question Further information is requested label Sep 1, 2019
@kailaix kailaix self-assigned this Sep 1, 2019
@kailaix
Copy link
Owner Author

kailaix commented Sep 1, 2019

The solution is to change Int64 to Int32.

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

No branches or pull requests

1 participant