Commit f776870
Github Executorch
Fix circular import in cortex_m passes using relative imports
Changed cortex_m_pass_manager.py to use relative imports (from .activation_fusion_pass)
instead of absolute imports (from executorch.backends.cortex_m.passes) for
intra-package references. This breaks the circular import chain:
__init__.py → cortex_m_pass_manager.py → __init__.py
Resolves: ImportError: cannot import name 'ActivationFusionPass' from
partially initialized module 'executorch.backends.cortex_m.passes'1 parent 39203cf commit f776870
File tree
2 files changed
+7
-9
lines changed- backends/cortex_m
- passes
- quantizer
2 files changed
+7
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 13 | | |
22 | 14 | | |
23 | 15 | | |
| |||
26 | 18 | | |
27 | 19 | | |
28 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
0 commit comments