-
Notifications
You must be signed in to change notification settings - Fork 25.7k
allow numpy-like boolean-list indexing in pytorch #14932
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
Conversation
|
@ruochunz could you please add a unit test for this case, so that we dont miss it in any future refactors |
|
Hi @soumith , something like this? |
|
Hi, I think this is fine, but I have a question: we are modifying the behavior of |
|
Yes, I agree. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing this!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@colesbury has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ezyang has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
Suggested fix to issue #6773, the fix allows numpy-like boolean-list indexing in pytorch