Skip to content

Commit 4e2f09c

Browse files
committed
fix dtype
1 parent 45a3a76 commit 4e2f09c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

torchao/quantization/quantize_/workflows/int8/int8_tensor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ class Int8Tensor(TorchAOBaseTensor):
6060
optional_tensor_attribute_names = [
6161
"block_size",
6262
"act_quant_kwargs",
63+
"dtype",
6364
]
6465

6566
def __new__(
@@ -83,6 +84,7 @@ def __init__(
8384
scale: torch.Tensor,
8485
block_size: Optional[List[int]] = None,
8586
act_quant_kwargs: Optional[QuantizeTensorToInt8Kwargs] = None,
87+
dtype: Optional[torch.dtype] = None,
8688
):
8789
super().__init__()
8890
self.qdata = qdata

0 commit comments

Comments
 (0)