Repository navigation
Conversation
| 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.
| # 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.
Maybe we can have nice things after all.
facebook-github-bot
left a comment
There was a problem hiding this comment.
@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.
@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.