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