diff options
author | justheuristic <justheuristic@gmail.com> | 2022-09-18 00:26:46 +0300 |
---|---|---|
committer | justheuristic <justheuristic@gmail.com> | 2022-09-18 00:26:46 +0300 |
commit | 702cc72018eaa177b94a276043a6c069ff0da32b (patch) | |
tree | f5bbb5aa5a18c2f891145d4d86cc37302828e34c /bitsandbytes/autograd | |
parent | a214824f930e26580304192c5cb8c4242c7889c5 (diff) |
debug asset
Diffstat (limited to 'bitsandbytes/autograd')
-rw-r--r-- | bitsandbytes/autograd/_functions.py | 1 |
1 files changed, 1 insertions, 0 deletions
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 |