Skip to content

Conversation

@zou3519
Copy link
Contributor

@zou3519 zou3519 commented Jul 9, 2018

THNN was accumulating the result of reduction loss functions
into real instead of accreal. This was causing precision issues with
MSELoss.

This patch only fixes MSELoss. Some of the other losses exhibit bad precision as well (because they accumulate into real instead of accreal) and require more investigation. I will open an issue for those (#9286)

Fixes #8710

cc @li-roy @ssnl

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.

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

zdevito pushed a commit to zdevito/ATen that referenced this pull request Jul 11, 2018
Summary:
THNN was accumulating the result of reduction loss functions
into real instead of accreal. This was causing precision issues with
MSELoss.

This patch only fixes MSELoss. Some of the other losses exhibit bad precision as well (because they accumulate into real instead of accreal) and require more investigation. I will open an issue for those (#9286)

Fixes #8710

cc li-roy SsnL
Pull Request resolved: pytorch/pytorch#9287

Reviewed By: SsnL

Differential Revision: D8775708

Pulled By: zou3519

fbshipit-source-id: d1a1f159deee0cb90fd8e81e63b246115eea8e9e
zdevito pushed a commit to zdevito/ATen that referenced this pull request Jul 13, 2018
Summary:
THNN was accumulating the result of reduction loss functions
into real instead of accreal. This was causing precision issues with
MSELoss.

This patch only fixes MSELoss. Some of the other losses exhibit bad precision as well (because they accumulate into real instead of accreal) and require more investigation. I will open an issue for those (#9286)

Fixes #8710

cc li-roy SsnL
Pull Request resolved: pytorch/pytorch#9287

Reviewed By: SsnL

Differential Revision: D8775708

Pulled By: zou3519

fbshipit-source-id: d1a1f159deee0cb90fd8e81e63b246115eea8e9e
goodlux pushed a commit to goodlux/pytorch that referenced this pull request Aug 15, 2018
…9287)

Summary:
THNN was accumulating the result of reduction loss functions
into real instead of accreal. This was causing precision issues with
MSELoss.

This patch only fixes MSELoss. Some of the other losses exhibit bad precision as well (because they accumulate into real instead of accreal) and require more investigation. I will open an issue for those (pytorch#9286)

Fixes pytorch#8710

cc li-roy SsnL
Pull Request resolved: pytorch#9287

Reviewed By: SsnL

Differential Revision: D8775708

Pulled By: zou3519

fbshipit-source-id: d1a1f159deee0cb90fd8e81e63b246115eea8e9e
@ezyang ezyang added the merged label Jun 26, 2019
gchanan added a commit that referenced this pull request Aug 28, 2020
These were (apparently) accidentally turned off two years ago in #9287.

[ghstack-poisoned]
gchanan added a commit that referenced this pull request Aug 28, 2020
These were (apparently) accidentally turned off two years ago in #9287.

ghstack-source-id: 8dc12aa
Pull Request resolved: #43809
gchanan added a commit that referenced this pull request Aug 30, 2020
These were (apparently) accidentally turned off two years ago in #9287.

Differential Revision: [D23408987](https://our.internmc.facebook.com/intern/diff/D23408987)
gchanan added a commit that referenced this pull request Aug 30, 2020
These were (apparently) accidentally turned off two years ago in #9287.

ghstack-source-id: 23846a5
Pull Request resolved: #43809
gchanan added a commit that referenced this pull request Aug 31, 2020
These were (apparently) accidentally turned off two years ago in #9287.

Differential Revision: [D23408987](https://our.internmc.facebook.com/intern/diff/D23408987)

[ghstack-poisoned]
gchanan added a commit that referenced this pull request Sep 2, 2020
This looks to have been a mistake from #9287.

[ghstack-poisoned]
gchanan added a commit that referenced this pull request Sep 2, 2020
This looks to have been a mistake from #9287.

[ghstack-poisoned]
gchanan added a commit that referenced this pull request Sep 2, 2020
This looks to have been a mistake from #9287.

Differential Revision: [D23476274](https://our.internmc.facebook.com/intern/diff/D23476274)

[ghstack-poisoned]
gchanan added a commit that referenced this pull request Sep 2, 2020
This looks to have been a mistake from #9287.

ghstack-source-id: 0ba7238
Pull Request resolved: #44030
facebook-github-bot pushed a commit that referenced this pull request Sep 3, 2020
Summary:
Pull Request resolved: #44030

This looks to have been a mistake from #9287.

Test Plan: Imported from OSS

Reviewed By: zou3519

Differential Revision: D23476274

Pulled By: gchanan

fbshipit-source-id: 81ed9d0c9a40d49153fc97cd69fdcd469bec0c73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect calculation for torch.nn.MSELoss

4 participants