-
Couldn't load subscription status.
- Fork 25.7k
Fix bad error message when int overflow #48250
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
💊 CI failures summary and remediationsAs of commit e3f3a36 (more details on the Dr. CI page):
Extra GitHub checks: 1 failed
codecov.io: 1 failed
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 or post in the (internal) Dr. CI Users group. This comment has been revised 5 times. |
Codecov Report
@@ Coverage Diff @@
## master #48250 +/- ##
==========================================
+ Coverage 80.61% 80.62% +0.01%
==========================================
Files 1875 1875
Lines 202765 202769 +4
==========================================
+ Hits 163467 163492 +25
+ Misses 39298 39277 -21 |
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.
@izdeby has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
ff9dc03 to
a44c2b5
Compare
|
Hey, @izdeby ! Thanks for reviewing this PR. |
a44c2b5 to
e3f3a36
Compare
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.
|
This pull request has been reverted by eb131cf. |
Summary: Fixes pytorch#48114 Before: ``` >>> torch.empty(2 * 10 ** 20) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: empty(): argument 'size' must be tuple of ints, but found element of type int at pos 1 ``` After fix: ``` >>> torch.empty(2 * 10 ** 20) Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: Overflow when unpacking long ``` Unclear whether we need a separate test for this case, I can add one if it's necessary... Pull Request resolved: pytorch#48250 Reviewed By: linbinyu Differential Revision: D25105217 Pulled By: ezyang fbshipit-source-id: a5aa7c0266945c8125210a2fd34ce4b6ba940c92
Fixes #48114
Before:
After fix:
Unclear whether we need a separate test for this case, I can add one if it's necessary...