summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjustheuristic <justheuristic@gmail.com>2022-09-17 23:13:23 +0300
committerjustheuristic <justheuristic@gmail.com>2022-09-17 23:13:23 +0300
commit9379df85d223dff18f0fa4adbaf60770700b262a (patch)
treecaea3610337c1d00cb56f018fe0a2c2790bf818f
parent140cdbe8767247bb9b8ea510755cceaa304b6859 (diff)
check dtypes first
-rw-r--r--tests/test_autograd.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_autograd.py b/tests/test_autograd.py
index 083d465..c47754b 100644
--- a/tests/test_autograd.py
+++ b/tests/test_autograd.py
@@ -367,7 +367,7 @@ def test_matmullt(
if has_bias:
out_torch += bias
- assert out_bnb.dtype == torch.dtype
+ assert out_bnb.dtype == out_torch.dtype
n = out_bnb.numel()
err = torch.abs(out_bnb - out_torch).mean().item()