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 8ce5cde commit 6f64121Copy full SHA for 6f64121
torchao/quantization/quantize_/workflows/int8/int8_tensor.py
@@ -155,15 +155,14 @@ def from_hp(
155
output_dtype=torch.int8,
156
)
157
158
- res = cls(
+ return cls(
159
int_data,
160
scale,
161
block_size,
162
hp_tensor.dtype,
163
act_quant_kwargs=act_quant_kwargs,
164
activation_scale=activation_scale,
165
166
- return res
167
168
def dequantize(self, output_dtype: Optional[torch.dtype] = None) -> torch.Tensor:
169
"""Dequantize int8 tensor to floating point"""
0 commit comments