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

Fix bugs in the indexing operator with latest NumPy #1895

Merged
merged 2 commits into from
Apr 12, 2016

Conversation

mrry
Copy link
Contributor

@mrry mrry commented Apr 12, 2016

np.random.random_integers() is deprecated and recently started returning non-int values. This PR fixes this so that the tf.Tensor indexing operator can handle non-int (but convertable-to-int) values, and removes the deprecated method from the test.

…`int()`.

Previously, the `_SliceHelper()` would test for `isinstance(..., int)`, which
is too restrictive.
@tensorflow-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

@mrry
Copy link
Contributor Author

mrry commented Apr 12, 2016

@tensorflow-jenkins, test this please.

@martinwicke martinwicke merged commit 1e2a17a into tensorflow:r0.8 Apr 12, 2016
@mrry mrry deleted the slice_fix branch May 18, 2016 16:48
fsx950223 pushed a commit to fsx950223/tensorflow that referenced this pull request Nov 28, 2023
…upstream-sync-221024

Develop upstream sync 221024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants