Skip to content

Commit 837ca7c

Browse files
authored
Implement node replacement for non-delegated quantized model
Add logic to replace quantized_decomposed nodes for QDQ ops.
1 parent 1805ef0 commit 837ca7c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

examples/arm/aot_arm_compiler.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,10 @@ def to_edge_no_delegate(
815815
),
816816
)
817817

818+
# Replace quantized_decomposed::* nodes with cortex_m::* equivalents for
819+
# any QDQ ops in the non-delegated quantized model.
820+
if args.target != "vgf" and not args.direct_drive:
821+
edge = edge.transform([ReplaceQuantNodesPass()])
818822
return model_quant, edge
819823

820824

0 commit comments

Comments
 (0)