We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a07ffe commit 21c828fCopy full SHA for 21c828f
bitsandbytes/functional.py
@@ -511,7 +511,7 @@ def as_dict(self, packed=False):
511
"blocksize": self.blocksize,
512
"quant_map": self.code,
513
"dtype": str(self.dtype).strip("torch."),
514
- "shape": tuple(self.shape),
+ "shape": tuple(self.shape) if self.shape is not None else None,
515
}
516
if self.nested:
517
qs_dict.update(
0 commit comments