Commit 9379df85 authored by justheuristic's avatar justheuristic
Browse files

check dtypes first

parent 140cdbe8
......@@ -367,7 +367,7 @@ def test_matmullt(
if has_bias:
out_torch += bias
assert out_bnb.dtype == torch.dtype
assert out_bnb.dtype == out_torch.dtype
n = out_bnb.numel()
err = torch.abs(out_bnb - out_torch).mean().item()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment