Skip to content

Check for consistent devices in at::where #33432

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

Closed

Conversation

vishwakftw
Copy link
Contributor

Changelog:

  • Add a check to ensure that all inputs to where lie on the same device

Test Plan:

  • Added test_where_invalid_device

Fixes #33422

Changelog:
- Add a check to ensure that all inputs to `where` lie on the same device

Test Plan:
- Added test_where_invalid_device
@dr-ci
Copy link

dr-ci bot commented Feb 18, 2020

💊 CircleCI build failures summary and remediations

As of commit 1bc6889:

Commit 1bc6889 was recently pushed. Waiting for builds...


This comment was automatically generated by Dr. CI (expand for details).Follow this link to opt-out of these comments for your Pull Requests.

Please report bugs/suggestions on the GitHub issue tracker.

This comment has been revised 2 times.

@yf225 yf225 requested a review from VitalyFedyunin February 19, 2020 21:03
@yf225 yf225 added module: operators triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module labels Feb 19, 2020
@VitalyFedyunin
Copy link
Contributor

Please fix lints before merge

@vishwakftw
Copy link
Contributor Author

@VitalyFedyunin I think the lint error is due to some dependency installation issue.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

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

@VitalyFedyunin has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@VitalyFedyunin
Copy link
Contributor

Right, sorry.

@vishwakftw
Copy link
Contributor Author

@pytorchbot merge this please

@pytorchbot pytorchbot added the merge-this-please Was marked for merge with @pytorchbot merge this please label Feb 20, 2020
@facebook-github-bot
Copy link
Contributor

@VitalyFedyunin merged this pull request in 1a25747.

ttumiel pushed a commit to ttumiel/pytorch that referenced this pull request Mar 4, 2020
Summary:
Changelog:
- Add a check to ensure that all inputs to `where` lie on the same device
Pull Request resolved: pytorch#33432

Test Plan:
- Added test_where_invalid_device

Fixes pytorch#33422

Differential Revision: D19981115

Pulled By: VitalyFedyunin

fbshipit-source-id: 745896927edb53f61f3dd48ba9e1e6cd10d35434
@vishwakftw vishwakftw deleted the fix-where-device-mismatch branch April 4, 2020 04:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-this-please Was marked for merge with @pytorchbot merge this please Merged open source triaged This issue has been looked at a team member, and triaged and prioritized into an appropriate module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

torch.where segfaults on mixed cpu and cuda arguments
6 participants