Skip to content

Restore the IndexError in pygpu_index.#452

Merged
nouiz merged 1 commit intoTheano:masterfrom
abergeron:restore_index
Jun 9, 2017
Merged

Restore the IndexError in pygpu_index.#452
nouiz merged 1 commit intoTheano:masterfrom
abergeron:restore_index

Conversation

@abergeron
Copy link
Copy Markdown
Member

@abergeron abergeron commented Jun 8, 2017

Comment thread pygpu/gpuarray.pyx
array_index(res, a, starts, stops, steps)
try:
array_index(res, a, starts, stops, steps)
except ValueError, e:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why this is needed? Can you add a test to make sure this don't get broken again?

@nouiz
Copy link
Copy Markdown
Member

nouiz commented Jun 9, 2017

As this is a regression fix, I'll merge now. But adding the test after would be great.

@nouiz nouiz merged commit d641fb5 into Theano:master Jun 9, 2017
@nouiz
Copy link
Copy Markdown
Member

nouiz commented Jun 9, 2017

And probably changing the error at the C level to be of the right type.

@nouiz
Copy link
Copy Markdown
Member

nouiz commented Jun 9, 2017

Should we run Theano gpu tests once to make sure to not break it again?

@lamblin
Copy link
Copy Markdown
Member

lamblin commented Jun 10, 2017

Ideally, I think we should include the tests in theano/gpuarray (at least) in the automatic buildbot for libgpuarray. This would make sure such issues are detected.

@abergeron
Copy link
Copy Markdown
Member Author

Instead of having the Theano PRs depend on the master of libgpuarray, we should depend on a tag and/or the latest release.

This way a nightly buildbot or some such catch these issues.

@abergeron abergeron deleted the restore_index branch August 2, 2017 21:22
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

Successfully merging this pull request may close these issues.

3 participants