Skip to content

Commit 22a81bf

Browse files
committed
added pactsym missing code
1 parent 31c4e2f commit 22a81bf

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

fms_mo/quant/quantizers.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,13 @@ def get_activation_quantizer(
152152
minmax=False,
153153
extend_act_range=extend_act_range,
154154
)
155-
155+
elif qa_mode == "pactsym":
156+
act_quantizer = PACT2Sym(
157+
nbits,
158+
init_clip_val=clip_val,
159+
dequantize=True,
160+
inplace=False,
161+
)
156162
elif qa_mode == "pactsym+":
157163
act_quantizer = PACTplusSym(
158164
nbits,

0 commit comments

Comments
 (0)