From 702cc72018eaa177b94a276043a6c069ff0da32b Mon Sep 17 00:00:00 2001 From: justheuristic Date: Sun, 18 Sep 2022 00:26:46 +0300 Subject: debug asset --- bitsandbytes/autograd/_functions.py | 1 + 1 file changed, 1 insertion(+) (limited to 'bitsandbytes/autograd') diff --git a/bitsandbytes/autograd/_functions.py b/bitsandbytes/autograd/_functions.py index 91eec4a..c3c2bf8 100644 --- a/bitsandbytes/autograd/_functions.py +++ b/bitsandbytes/autograd/_functions.py @@ -321,6 +321,7 @@ class MatMul8bitLt(torch.autograd.Function): # 4. Mixed-precision decomposition matmul if coo_tensorA is not None and subA is not None: + assert subA.dtype == state.subB.dtype, (subA.dtype, state.subB.dtype) output += torch.matmul(subA, state.subB) # 5. Save state -- cgit v1.2.3