Skip to content

Commit 18f142e

Browse files
committed
addmm_
1 parent f667032 commit 18f142e

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
@@ -318,7 +318,7 @@ def forward(ctx, A, B, out=None, bias=None, state=MatmulLtState()):
318318

319319
# 4. Mixed-precision decomposition matmul
320320
if coo_tensorA is not None and subA is not None:
321-
output += torch.matmul(subA, state.subB)
321+
output.addmm_(output, subA, state.subB)
322322

323323
# 5. Save state
324324
ctx.state = state

0 commit comments

Comments
 (0)