Skip to content

Commit 463630d

Browse files
authored
[BugFix] replace view+continuous with reshape
1 parent 4395d68 commit 463630d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bitsandbytes/autograd/_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def forward(ctx, A, B, out=None, bias=None, state=MatmulLtState):
322322

323323
# 1. Quantize A
324324
if len(A.shape) == 3:
325-
A = A.view(-1, A.shape[-1]).contiguous()
325+
A = A.reshape(-1, A.shape[-1])
326326
CA, CAt, SCA, SCAt, coo_tensorA = F.double_quant(A.to(torch.float16), threshold=state.threshold)
327327

328328
if state.threshold > 0.0 and coo_tensorA is not None:

0 commit comments

Comments
 (0)