forked from mrq/bitsandbytes-rocm
check dtypes first
This commit is contained in:
parent
140cdbe876
commit
9379df85d2
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user