summaryrefslogtreecommitdiff
path: root/bitsandbytes/autograd
diff options
context:
space:
mode:
authorjustheuristic <justheuristic@gmail.com>2022-09-18 00:30:57 +0300
committerjustheuristic <justheuristic@gmail.com>2022-09-18 00:30:57 +0300
commit577275bd8c1b4191284c4fb34799d252ae8667a1 (patch)
treee036c0a106e424721609e47fb58b5a7dbae0a2fe /bitsandbytes/autograd
parent45dc1983e92f9c3125948f416aafc6b96b3a6c15 (diff)
cast properly
Diffstat (limited to 'bitsandbytes/autograd')
-rw-r--r--bitsandbytes/autograd/_functions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitsandbytes/autograd/_functions.py b/bitsandbytes/autograd/_functions.py
index 03949de..5a83dfd 100644
--- a/bitsandbytes/autograd/_functions.py
+++ b/bitsandbytes/autograd/_functions.py
@@ -294,7 +294,7 @@ class MatMul8bitLt(torch.autograd.Function):
(outliers * state.SCB.view(-1, 1) / 127.0)
.t()
.contiguous()
- .to(B.dtype)
+ .to(A.dtype)
)
CA[:, state.idx.long()] = 0
CAt[:, state.idx.long()] = 0