Skip to content

Commit 4e585e9

Browse files
committed
fix __repr__
1 parent ceaa71c commit 4e585e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchao/prototype/quant_llm/quant_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ def dequantize(self, output_dtype=None):
386386
def __repr__(self):
387387
dtype = f"fp{1 + self.ebits + self.mbits}_e{self.ebits}m{self.mbits}"
388388
return (
389-
f"{self.__class__.name}(dtype={dtype}, shape={self.shape}, "
389+
f"{self.__class__.__name__}(dtype={dtype}, shape={self.shape}, "
390390
f"device={self.device}, requires_grad={self.requires_grad})"
391391
)
392392

0 commit comments

Comments
 (0)