Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

tugsbayasgalan
Copy link
Contributor

@tugsbayasgalan tugsbayasgalan commented Oct 29, 2020

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

@tugsbayasgalan tugsbayasgalan changed the title Recognizes -0.0 now Float -0.0 is handled properly now Oct 29, 2020
@dr-ci
Copy link

dr-ci bot commented Oct 30, 2020

💊 CI failures summary and remediations

As 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.

See how this bot performed.

This comment has been revised 28 times.

aten/src/ATen/core/ivalue.cpp Outdated Show resolved Hide resolved
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.

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

@codecov
Copy link

codecov bot commented Nov 3, 2020

Codecov Report

Merging #47081 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master   #47081   +/-   ##
=======================================
  Coverage   60.81%   60.81%           
=======================================
  Files        2748     2748           
  Lines      254047   254048    +1     
=======================================
+ Hits       154503   154505    +2     
+ Misses      99544    99543    -1     

@gmagogsfm gmagogsfm changed the title Float -0.0 is handled properly now Correctly print out sign of near-zero double values Nov 3, 2020
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.

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

@facebook-github-bot
Copy link
Contributor

@gmagogsfm merged this pull request in 29184f8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TorchScript not recognize -0.0 as argument
3 participants