From e29c5f5c41627668c650a2849e29599cd4f0bf3a Mon Sep 17 00:00:00 2001 From: justheuristic Date: Sat, 17 Sep 2022 23:22:04 +0300 Subject: clearer assertions --- tests/test_autograd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- cgit v1.2.3