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
Correctly print out sign of near-zero double values #47081
Conversation
00fe653
to
b04d752
Compare
💊 CI failures summary and remediationsAs of commit d530d3e (more details on the Dr. CI page): 💚 💚 Looks good so far! There are no failures yet. 💚 💚 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 28 times. |
aa2285c
to
7e5dc71
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.
@gmagogsfm has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
7e5dc71
to
d530d3e
Compare
Codecov Report
@@ Coverage Diff @@
## master #47081 +/- ##
=======================================
Coverage 60.81% 60.81%
=======================================
Files 2748 2748
Lines 254047 254048 +1
=======================================
+ Hits 154503 154505 +2
+ Misses 99544 99543 -1 |
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.
@gmagogsfm has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@gmagogsfm merged this pull request in 29184f8. |
Summary: inside IValue.h, we previously printed -0.0 as 0.0. Therefore, it was causing some inconsistency when using -0.0.
Test Plan: A new test case inside test_jit that divides a tensor by -0. and checks if it outputs -inf for all modes.
Reviewers: Yanan Cao
Subscribers:
Tasks:
Tags:
Fixes #46848