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 45a3a76 commit 4e2f09cCopy full SHA for 4e2f09c
torchao/quantization/quantize_/workflows/int8/int8_tensor.py
@@ -60,6 +60,7 @@ class Int8Tensor(TorchAOBaseTensor):
60
optional_tensor_attribute_names = [
61
"block_size",
62
"act_quant_kwargs",
63
+ "dtype",
64
]
65
66
def __new__(
@@ -83,6 +84,7 @@ def __init__(
83
84
scale: torch.Tensor,
85
block_size: Optional[List[int]] = None,
86
act_quant_kwargs: Optional[QuantizeTensorToInt8Kwargs] = None,
87
+ dtype: Optional[torch.dtype] = None,
88
):
89
super().__init__()
90
self.qdata = qdata
0 commit comments