summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjustheuristic <justheuristic@gmail.com>2022-09-18 00:00:45 +0300
committerjustheuristic <justheuristic@gmail.com>2022-09-18 00:00:45 +0300
commit210b9ed9cef6a053d783c2d3926171b30ce6a969 (patch)
tree6999b2eebc449b6d3fc40cc5013c564fa4104311
parent647c976a74249d284b31e8403dfcbcbfa3e203a3 (diff)
debug assert
-rw-r--r--bitsandbytes/autograd/_functions.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitsandbytes/autograd/_functions.py b/bitsandbytes/autograd/_functions.py
index 25ff1a5..7441a22 100644
--- a/bitsandbytes/autograd/_functions.py
+++ b/bitsandbytes/autograd/_functions.py
@@ -323,6 +323,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 == output.dtype
output.addmm_(subA, state.subB)
# 5. Save state