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 c76e208 commit 58f149cCopy full SHA for 58f149c
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