mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-06 12:20:52 +01:00
[cuSPARSE][B200] Bump tolerances for test_sparse_csr matvec (#148721)
Small tolerance bump for blackwell (appears to use same kernel as prev. arches) Pull Request resolved: https://github.com/pytorch/pytorch/pull/148721 Approved by: https://github.com/nWEIdia, https://github.com/ngimel
This commit is contained in:
parent
1f29190b59
commit
17bf59340c
|
|
@ -1495,7 +1495,8 @@ class TestSparseCSR(TestCase):
|
||||||
res = csr.matmul(vec)
|
res = csr.matmul(vec)
|
||||||
expected = csr.to_dense().matmul(vec)
|
expected = csr.to_dense().matmul(vec)
|
||||||
|
|
||||||
self.assertEqual(res, expected)
|
atol, rtol = (2e-3, 1e-3) if dtype == torch.half else (None, None)
|
||||||
|
self.assertEqual(res, expected, atol=atol, rtol=rtol)
|
||||||
|
|
||||||
bad_vec = torch.randn(side + 10, dtype=dtype, device=device)
|
bad_vec = torch.randn(side + 10, dtype=dtype, device=device)
|
||||||
err_msg = "size mismatch, got"
|
err_msg = "size mismatch, got"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user