-
Notifications
You must be signed in to change notification settings - Fork 26.3k
fixes lda condition for blas functions, fixes bug with beta=0 in addmv slow path #44681
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
Conversation
test/test_torch.py
Outdated
| v = torch.randn(100, device=device).to(dtype) | ||
| self._test_addmm_addmv(torch.addmv, t, m, v, beta=0) | ||
|
|
||
| # Test beta=0, v=nan, 0-strided v |
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.
| # Test beta=0, v=nan, 0-strided v | |
| # Test beta=0, t=nan, 0-strided v |
|
Tests expanded according to @zasdfgbnm suggestion (thanks!), initialization for broadcasted matrices/vectors in tests fixed to remain within exactly representable numbers and reduce errors |
Codecov Report
@@ Coverage Diff @@
## master #44681 +/- ##
=======================================
Coverage 67.97% 67.97%
=======================================
Files 384 384
Lines 49626 49626
=======================================
Hits 33731 33731
Misses 15895 15895 Continue to review full report at Codecov.
|
mruberry
left a comment
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.
Maybe we can have nice things after all.
facebook-github-bot
left a comment
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.
@ngimel has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
💊 CI failures summary and remediationsAs of commit 324f2a9 (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
facebook-github-bot
left a comment
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.
@ngimel has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
…v slow path (#44681) Summary: per title. If `beta=0` and slow path was taken, `nan` and `inf` in the result were not masked as is the case with other linear algebra functions. Similarly, since `mv` is implemented as `addmv` with `beta=0`, wrong results were sometimes produced for `mv` slow path. Pull Request resolved: #44681 Reviewed By: mruberry Differential Revision: D23708653 Pulled By: ngimel fbshipit-source-id: e2d5d3e6f69b194eb29b327e1c6f70035f3b231c
per title. If
beta=0and slow path was taken,nanandinfin the result were not masked as is the case with other linear algebra functions. Similarly, sincemvis implemented asaddmvwithbeta=0, wrong results were sometimes produced formvslow path.