cast properly

This commit is contained in:
justheuristic 2022-09-18 00:30:57 +03:00
parent 45dc1983e9
commit 577275bd8c

View File

@ -294,7 +294,7 @@ class MatMul8bitLt(torch.autograd.Function):
(outliers * state.SCB.view(-1, 1) / 127.0) (outliers * state.SCB.view(-1, 1) / 127.0)
.t() .t()
.contiguous() .contiguous()
.to(B.dtype) .to(A.dtype)
) )
CA[:, state.idx.long()] = 0 CA[:, state.idx.long()] = 0
CAt[:, state.idx.long()] = 0 CAt[:, state.idx.long()] = 0