[BugFix] replace view+continuous with reshape
This commit is contained in:
parent
4395d68cf6
commit
463630dc73
|
@ -322,7 +322,7 @@ class MatMul8bitLt(torch.autograd.Function):
|
||||||
|
|
||||||
# 1. Quantize A
|
# 1. Quantize A
|
||||||
if len(A.shape) == 3:
|
if len(A.shape) == 3:
|
||||||
A = A.view(-1, A.shape[-1]).contiguous()
|
A = A.reshape(-1, A.shape[-1])
|
||||||
CA, CAt, SCA, SCAt, coo_tensorA = F.double_quant(A.to(torch.float16), threshold=state.threshold)
|
CA, CAt, SCA, SCAt, coo_tensorA = F.double_quant(A.to(torch.float16), threshold=state.threshold)
|
||||||
|
|
||||||
if state.threshold > 0.0 and coo_tensorA is not None:
|
if state.threshold > 0.0 and coo_tensorA is not None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user