Skip to content

Commit

Permalink
check dtypes first
Browse files Browse the repository at this point in the history
  • Loading branch information
justheuristic committed Sep 17, 2022
1 parent 140cdbe commit 9379df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_autograd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9379df8

Please sign in to comment.