Skip to content

Commit 057bf4e

Browse files
committed
fix _functions
1 parent 3ac9d38 commit 057bf4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

bitsandbytes/autograd/_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ def backward(ctx, grad_output):
464464
grad_output = grad_output.reshape(-1, grad_output.shape[-1]).contiguous()
465465

466466
Cgrad, Cgradt, SCgrad, SCgradt, coo_tensor = None, None, None, None, None
467-
if req_gradB or (req_gradA and state.CBt):
467+
if req_gradB or (req_gradA and state.CBt is not None):
468468
Cgrad, Cgradt, SCgrad, SCgradt, coo_tensor = F.double_quant(grad_output.to(torch.float16))
469469
if req_gradB:
470470
CxAt, SAt = F.transform(CAt, formatB, transpose=True)

0 commit comments

Comments
 (0)