Skip to content

Commit 7282106

Browse files
authored
Fix Samsung backend PassManager import broken by #20025 (#20228)
#20025 ("Arm backend: Migrate pass manager to exported program") changed `exir/passes/__init__.py` to re-export `ExportedProgramPassManager` instead of `PassManager`. The Samsung backend still imports `PassManager` from `executorch.exir.passes`, so every Samsung model export now fails at import: ``` ImportError: cannot import name 'PassManager' from 'executorch.exir.passes' ``` This has made `test-samsung-quantmodels-linux` red on every main commit since 2026-06-11 14:52 UTC and is blocking viable/strict promotion (stale ~31h). The legacy `PassManager` class still exists in `executorch.exir.pass_manager`. The Samsung backend runs passes on a GraphModule (`enn_preprocess_passes(edge_program.graph_module)`), which is exactly what the legacy `PassManager` is for, not the new `ExportedProgramPassManager`. This repoints the import to its canonical module and restores the previous behavior. cc @usamahz
1 parent 635a884 commit 7282106

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backends/samsung/enn_preprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
PreprocessResult,
4040
)
4141

42-
from executorch.exir.passes import PassManager
42+
from executorch.exir.pass_manager import PassManager
4343

4444
from torch.export.exported_program import ExportedProgram
4545

0 commit comments

Comments
 (0)