forked from mrq/bitsandbytes-rocm
clearer assertions
This commit is contained in:
parent
9379df85d2
commit
e29c5f5c41
|
@ -367,7 +367,7 @@ def test_matmullt(
|
||||||
if has_bias:
|
if has_bias:
|
||||||
out_torch += 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()
|
n = out_bnb.numel()
|
||||||
err = torch.abs(out_bnb - out_torch).mean().item()
|
err = torch.abs(out_bnb - out_torch).mean().item()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user