summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjustheuristic <justheuristic@gmail.com>2022-09-17 23:22:04 +0300
committerjustheuristic <justheuristic@gmail.com>2022-09-17 23:22:04 +0300
commite29c5f5c41627668c650a2849e29599cd4f0bf3a (patch)
tree308e7941756c4a3d8ef016e931297e95c0a3de0c
parent9379df85d223dff18f0fa4adbaf60770700b262a (diff)
clearer assertions
-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 c47754b..5171c4f 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 == out_torch.dtype
+ assert out_bnb.dtype == A.dtype, f"bnb matmullt received {A.dtype} but returned {out_bnb.dtype}"
n = out_bnb.numel()
err = torch.abs(out_bnb - out_torch).mean().item()