Skip to content

Conversation

@cloudhan
Copy link
Contributor

@cloudhan cloudhan commented Jul 2, 2020

Fixed #40771

@cloudhan cloudhan requested a review from apaszke as a code owner July 2, 2020 02:57
@facebook-github-bot facebook-github-bot added the oncall: jit Add this issue/PR to JIT oncall triage queue label Jul 2, 2020
@cloudhan
Copy link
Contributor Author

cloudhan commented Jul 3, 2020

@suo @gmagogsfm @fmassa would you mind looking at it?

@dr-ci
Copy link

dr-ci bot commented Jul 4, 2020

💊 CI failures summary and remediations

As of commit 0d2ff45 (more details on the Dr. CI page):


  • 1/1 failures possibly* introduced in this PR
    • 1/1 non-CircleCI failure(s)

ci.pytorch.org: 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.

See how this bot performed.

This comment has been revised 14 times.

@cloudhan cloudhan force-pushed the fix-jit-roundeven branch from ede07f9 to 97ded94 Compare July 6, 2020 03:46
@cloudhan cloudhan force-pushed the fix-jit-roundeven branch from d1ebc1d to 5f63eee Compare July 13, 2020 02:43
@cloudhan cloudhan requested a review from gmagogsfm July 14, 2020 03:33
// special halfway case. For positive 'x', round(x/2)*2 =
// round((x_e + x_r)/2)*2 = x_e + round(x_r/2)*2, where x_e is an even integer,
// x_r is either 0.5 of 1.5, round(x_r/2)*2 results a 0 or 2, so the final
// result will always be a even number. Due to symmetric, it also applies to
Copy link
Contributor

Choose a reason for hiding this comment

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

s/symmetric/symmetricity

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.

@gmagogsfm
Copy link
Contributor

Thank you cloudhan for contributing this fix!

@facebook-github-bot
Copy link
Contributor

@gmagogsfm merged this pull request in e44f460.

fmassa added a commit to fmassa/vision-1 that referenced this pull request Dec 4, 2020
fmassa added a commit to fmassa/vision-1 that referenced this pull request Dec 4, 2020
fmassa added a commit to pytorch/vision that referenced this pull request Dec 4, 2020
@cloudhan cloudhan deleted the fix-jit-roundeven branch September 26, 2021 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Merged oncall: jit Add this issue/PR to JIT oncall triage queue open source

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[jit] round not equivalent between python and torchscript

5 participants