From ecf5848c9e3e7dd744d82dbd566569b47c17e96b Mon Sep 17 00:00:00 2001 From: RJ Ascani Date: Wed, 11 Feb 2026 15:26:11 -0800 Subject: [PATCH] Fix Cortex-M MobileNetV2 dialect test expected op counts The test expected 1 dequantize/quantize_per_tensor op each after transforms, but the graph actually produces 2. The extra pair is a requantization boundary between avg_pool2d and linear caused by an unannotated clone_dim_order node blocking FoldAndAnnotateQParamsPass from folding through the view_copy -> clone_dim_order -> linear chain. This PR was authored with Claude. --- backends/cortex_m/test/models/test_mobilenet_v2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/cortex_m/test/models/test_mobilenet_v2.py b/backends/cortex_m/test/models/test_mobilenet_v2.py index 792a0e3800b..5a93ae82d34 100644 --- a/backends/cortex_m/test/models/test_mobilenet_v2.py +++ b/backends/cortex_m/test/models/test_mobilenet_v2.py @@ -27,8 +27,8 @@ ops_after_transforms: dict[str, int] = { "executorch_exir_dialects_edge__ops_aten_view_copy_default": 1, - "executorch_exir_dialects_edge__ops_cortex_m_dequantize_per_tensor_default": 1, - "executorch_exir_dialects_edge__ops_cortex_m_quantize_per_tensor_default": 1, + "executorch_exir_dialects_edge__ops_cortex_m_dequantize_per_tensor_default": 2, + "executorch_exir_dialects_edge__ops_cortex_m_quantize_per_tensor_default": 2, "executorch_exir_dialects_edge__ops_cortex_m_quantized_add_default": 10, "executorch_exir_dialects_edge__ops_cortex_m_quantized_avg_pool2d_default": 1, "executorch_exir_dialects_edge__ops_cortex_m_quantized_conv2d_default": 35,