Skip to content

Commit 0bba11c

Browse files
authored
Remove deprecated QDQ fusion pass argument
Remove deprecated --enable_qdq_fusion_pass argument and related logging.
1 parent 13b7ddc commit 0bba11c

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

examples/arm/aot_arm_compiler.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -603,6 +603,11 @@ def get_args():
603603
action="store_false",
604604
help="Disable strict checking while exporting models.",
605605
)
606+
parser.add_argument(
607+
"--enable_qdq_fusion_pass",
608+
action="store_true",
609+
help="[DEPRECATED] This flag is no longer used and will be removed in a future release.",
610+
)
606611
parser.add_argument(
607612
"--enable_debug_mode",
608613
required=False,
@@ -846,6 +851,13 @@ def to_edge_no_delegate(
846851
model = exported_program.module()
847852
model_fp32 = model
848853

854+
if args.enable_qdq_fusion_pass:
855+
logging.warning(
856+
"--enable_qdq_fusion_pass is deprecated and has no effect. "
857+
"Quantized node replacement is now handled within the "
858+
"respective compilation paths."
859+
)
860+
849861
model_name = os.path.basename(os.path.splitext(args.model_name)[0])
850862
if args.intermediates:
851863
os.makedirs(args.intermediates, exist_ok=True)

0 commit comments

Comments
 (0)