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 26ffe95 commit f2e3994Copy full SHA for f2e3994
fms_mo/quant/quantizers.py
@@ -3907,8 +3907,8 @@ def forward(self, x: torch.Tensor):
3907
return x_dequant
3908
3909
def init_quantization_scale(self, x: torch.Tensor, channel_wise: bool = False):
3910
- delta, zero_point = 1.0, 0
3911
- # init seems unnecessary, but at least avoid None induced type chk err
+ # delta, zero_point = 1.0, 0
+ # init seems unnecessary, comment out to avoid None induced type chk err
3912
if channel_wise:
3913
x_clone = x.clone().detach()
3914
n_channels = x_clone.shape[0]
0 commit comments