clearer assertions

This commit is contained in:
justheuristic 2022-09-17 23:22:04 +03:00
parent 9379df85d2
commit e29c5f5c41

View File

@ -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()