From f610cf5fe2c8297ba75f4fd067f6eb71c4c34bd1 Mon Sep 17 00:00:00 2001 From: Matthias Cremon Date: Mon, 7 Jul 2025 16:46:20 -0700 Subject: [PATCH] Remove strictness in export calls (#10552) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/10552 The new PT default has been to do non-strict export for a little while now. We have explicit strict because the PT compiler team preserved the current behavior at the time, but we should be able to remove it and match the default. It might also make more models go through. Differential Revision: D73859317 --- backends/cadence/aot/compiler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/cadence/aot/compiler.py b/backends/cadence/aot/compiler.py index 560b625e4c0..844e35e3d26 100644 --- a/backends/cadence/aot/compiler.py +++ b/backends/cadence/aot/compiler.py @@ -88,7 +88,7 @@ def trace( # Export with dynamo program = torch.export.export_for_training( - model, inputs, strict=True + model, inputs ).run_decompositions(decomp_table) if dump_graphs: