Commit 371cb1c
authored
Wire target_config Buck deps on cmsis_nn_py (pytorch#19604) (pytorch#19604)
Summary:
A previous change added `executorch/backends/cortex_m/target_config.py`
(and `passes/cortex_m_pass.py`) but did not wire them into the cortex_m
Buck graph. As a result, importing
`executorch.backends.cortex_m.passes.cortex_m_pass_manager` from any
consumer fails at import time with:
```
ModuleNotFoundError: No module named 'executorch.backends.cortex_m.target_config'
```
This change wires the new files into Buck and connects them to the
newly-buckified `cmsis_nn` Python package:
- New `//executorch/backends/cortex_m:target_config` `python_library`
exporting `target_config.py`, depending on
`//third-party/cmsis-nn:cmsis_nn_py` (added earlier in this stack).
- `//executorch/backends/cortex_m/passes:cortex_passes`: add
`cortex_m_pass.py` to `srcs` (needed because `passes/__init__.py` does
`from .cortex_m_pass import CortexMPass`), and add `:target_config` to
`deps` so `cortex_m_pass_manager.py` and `cortex_m_pass.py` can resolve
their `target_config` import.
Reviewed By: psiddh
Differential Revision: D1052102391 parent 803e47d commit 371cb1c
2 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| 43 | + | |
42 | 44 | | |
43 | 45 | | |
44 | 46 | | |
| |||
0 commit comments