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 7bfe923 commit bcfd75cCopy full SHA for bcfd75c
bitsandbytes/functional.py
@@ -512,7 +512,7 @@ def as_dict(self, packed=False):
512
"blocksize": self.blocksize,
513
"quant_map": self.code,
514
"dtype": str(self.dtype).strip("torch."),
515
- "shape": tuple(self.shape),
+ "shape": tuple(self.shape) if self.shape is not None else None,
516
}
517
if self.nested:
518
qs_dict.update(
0 commit comments