check dtypes first

This commit is contained in:
justheuristic 2022-09-17 23:13:23 +03:00
parent 140cdbe876
commit 9379df85d2

View File

@ -367,7 +367,7 @@ def test_matmullt(
if has_bias: if has_bias:
out_torch += bias out_torch += bias
assert out_bnb.dtype == torch.dtype assert out_bnb.dtype == out_torch.dtype
n = out_bnb.numel() n = out_bnb.numel()
err = torch.abs(out_bnb - out_torch).mean().item() err = torch.abs(out_bnb - out_torch).mean().item()