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

In the CUDA implementation of erfinv, erfinv() should be used for double #25337

Closed
wants to merge 2 commits into from

Conversation

xuhdev
Copy link
Collaborator

@xuhdev xuhdev commented Aug 28, 2019

This best preserves accuracy, while erfinvf() should be used for half and float.

This is also consistent with the implementation before the migration: #24943

@pytorchbot pytorchbot added module: cuda Related to torch.cuda, and CUDA support in general module: operators labels Aug 28, 2019
@VitalyFedyunin
Copy link
Contributor

It is possible to test cover, to make sure that we are not repeating this error again.

@xuhdev xuhdev force-pushed the erfinv branch 4 times, most recently from 2a2dbb8 to 7a43dfb Compare August 28, 2019 21:40
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.

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

@xuhdev xuhdev force-pushed the erfinv branch 3 times, most recently from fef39cf to 1a88df9 Compare August 28, 2019 22:25
@xuhdev
Copy link
Collaborator Author

xuhdev commented Aug 28, 2019

@VitalyFedyunin Could you re-import please? Now this should be ready.

Also, I've added test to ensure the accuracy for double

@xuhdev
Copy link
Collaborator Author

xuhdev commented Sep 4, 2019

@pytorchbot rebase this please

@xuhdev
Copy link
Collaborator Author

xuhdev commented Sep 5, 2019

@VitalyFedyunin Could you re-review this, please? Thanks!

@xuhdev
Copy link
Collaborator Author

xuhdev commented Sep 5, 2019

@pytorchbot rebase this please

@xuhdev xuhdev requested a review from zou3519 September 9, 2019 18:22
This best preserves accuracy, while erfinvf() should be used for half
and float.
Copy link
Contributor

@zou3519 zou3519 left a comment

Choose a reason for hiding this comment

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

nice!

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 Sep 10, 2019
…ble (#25337)

Summary:
This best preserves accuracy, while erfinvf() should be used for half and float.

This is also consistent with the implementation before the migration: pytorch/pytorch#24943
Pull Request resolved: pytorch/pytorch#25337

Differential Revision: D17102333

Pulled By: zou3519

fbshipit-source-id: 5178cff534cf5f10d86ab04d4b6c1779ffedf49e
@facebook-github-bot
Copy link
Contributor

@zou3519 merged this pull request in 57b23c6.

@xuhdev xuhdev deleted the erfinv branch September 10, 2019 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merged module: cuda Related to torch.cuda, and CUDA support in general
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants