From 876387dc0c1c71ad9cd827d4aecc31190313c7ab Mon Sep 17 00:00:00 2001 From: dbaranchuk Date: Wed, 24 Aug 2022 01:12:48 +0300 Subject: minor fixes --- bitsandbytes/autograd/_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitsandbytes/autograd') diff --git a/bitsandbytes/autograd/_functions.py b/bitsandbytes/autograd/_functions.py index 641a779..7cf4999 100644 --- a/bitsandbytes/autograd/_functions.py +++ b/bitsandbytes/autograd/_functions.py @@ -363,8 +363,8 @@ class MatMul8bitLt(torch.autograd.Function): # Restore CBt from CB assert state.CBt is None, "CBt should not be stored in state" CB = state.CB.half() - SCB = state.SCB.unsquezee(1).half() - SCBt = state.SCBt.unsquezee(1).half() + SCB = state.SCB.unsqueeze(1).half() + SCBt = state.SCBt.unsqueeze(1).half() Bt = (CB * SCB).t().contiguous() CBt = (Bt / SCBt).t().to(torch.int8) -- cgit v1.2.3