-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Fix Avoid DDE in item numel check #164934
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
[ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/164934
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 7e7328f with merge base 1fc71d1 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
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.
good catch!
Scalar item(const Tensor& self) { | ||
auto numel = self.sym_numel(); | ||
TORCH_CHECK(numel == 1, "a Tensor with ", numel, " elements cannot be converted to Scalar"); | ||
TORCH_SYM_CHECK( |
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.
As we discussed in-person (but possibly a different PR) we should comment TORCH_CHECK and TORCH_SYM_CHECK better to explain the difference.
@pytorchbot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
@pytorchbot revert -m "Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable" -c autorevert This PR is attributed to have caused regression in:
Please investigate and fix the issues. |
@pytorchbot successfully started a revert job. Check the current status here. |
@laithsakka your PR has been successfully reverted. |
This reverts commit a9a9a34. Reverted #164934 on behalf of https://github.com/pytorch-auto-revert due to Reverted automatically by pytorch's autorevert, to avoid this behaviour add the tag autorevert: disable ([comment](#164934 (comment)))
@pytorchbot merge -f Seems that autorevert should not have flagged this PR |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot merge -f "Seems that autorevert should not have flagged this PR" |
Merge startedYour change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Stack from ghstack (oldest at bottom):
address #164725 and #164704