Skip to content

Commit 8490581

Browse files
committed
fix qscales typo
1 parent 3e9746c commit 8490581

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torchao/quantization/subclass.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ class Int8DynamicallyQuantizedLinearWeight(QuantizedLinearWeightBase):
231231
@staticmethod
232232
def __new__(cls, int_data, q_scales, transposed, shape, dtype=None, **kwargs):
233233
if dtype is None:
234-
dtype = qscales.dtype
234+
dtype = q_scales.dtype
235235
kwargs["dtype"] = dtype
236236
return super().__new__(cls, int_data, transposed, shape, **kwargs) # type: ignore[attr-defined]
237237

0 commit comments

Comments
 (0)