diff options
author | justheuristic <justheuristic@gmail.com> | 2022-09-17 23:22:04 +0300 |
---|---|---|
committer | justheuristic <justheuristic@gmail.com> | 2022-09-17 23:22:04 +0300 |
commit | e29c5f5c41627668c650a2849e29599cd4f0bf3a (patch) | |
tree | 308e7941756c4a3d8ef016e931297e95c0a3de0c | |
parent | 9379df85d223dff18f0fa4adbaf60770700b262a (diff) |
clearer assertions
-rw-r--r-- | tests/test_autograd.py | 2 |
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() |