Skip to content

Commit 26ffe95

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fms_mo/quant/quantizers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3907,7 +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 # init seems unnecessary, at least avoid None causing type chk err
3910+
delta, zero_point = 1.0, 0
3911+
# init seems unnecessary, but at least avoid None induced type chk err
39113912
if channel_wise:
39123913
x_clone = x.clone().detach()
39133914
n_channels = x_clone.shape[0]

0 commit comments

Comments
 (0)