From 9cf68174994ff2ce70af466b0607cf72aa1648a7 Mon Sep 17 00:00:00 2001 From: Gregory Comer Date: Thu, 12 Feb 2026 19:15:46 -0800 Subject: [PATCH] Enable re-inplace pass in XNNPACK recipe --- optimum/exporters/executorch/recipes/xnnpack.py | 1 + 1 file changed, 1 insertion(+) diff --git a/optimum/exporters/executorch/recipes/xnnpack.py b/optimum/exporters/executorch/recipes/xnnpack.py index ef37cc7f..e224142d 100644 --- a/optimum/exporters/executorch/recipes/xnnpack.py +++ b/optimum/exporters/executorch/recipes/xnnpack.py @@ -75,6 +75,7 @@ def _lower_to_executorch( backend_config_dict = { "extract_delegate_segments": True, "memory_planning_pass": MemoryPlanningPass(alloc_graph_input=False), + "run_reinplace_pass": True, } backend_config_dict["do_quant_fusion_and_const_prop"] = True logging.debug(f"\nExported program: {exported_programs}")