diff options
author | justheuristic <justheuristic@gmail.com> | 2022-09-18 00:30:57 +0300 |
---|---|---|
committer | justheuristic <justheuristic@gmail.com> | 2022-09-18 00:30:57 +0300 |
commit | 577275bd8c1b4191284c4fb34799d252ae8667a1 (patch) | |
tree | e036c0a106e424721609e47fb58b5a7dbae0a2fe /bitsandbytes | |
parent | 45dc1983e92f9c3125948f416aafc6b96b3a6c15 (diff) |
cast properly
Diffstat (limited to 'bitsandbytes')
-rw-r--r-- | bitsandbytes/autograd/_functions.py | 2 |
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 |