Skip to content

Commit f2e3994

Browse files
Update quantizers.py
Signed-off-by: chichun-charlie-liu <[email protected]>
1 parent 26ffe95 commit f2e3994

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fms_mo/quant/quantizers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3907,8 +3907,8 @@ def forward(self, x: torch.Tensor):
39073907
return x_dequant
39083908

39093909
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
3910+
# delta, zero_point = 1.0, 0
3911+
# init seems unnecessary, comment out to avoid None induced type chk err
39123912
if channel_wise:
39133913
x_clone = x.clone().detach()
39143914
n_channels = x_clone.shape[0]

0 commit comments

Comments
 (0)