Commit 5decfcd
authored
Summary:
Forward fix for D111976876 (DiffTrain import of pytorch/executorch
#20878). That diff added
`executorch/exir/passes/legalize_portable_dim_order_pass.py` and imports
`LegalizePortableDimOrderPass` at the top of `exir/passes/__init__.py`,
but like every DiffTrain import it carried no Buck changes. Since
`exir/passes/BUCK` uses explicit per-file `srcs` lists (no globs), the
new module was never wired into any target, so importing
`executorch.exir.passes` fails with `ModuleNotFoundError: No module
named 'executorch.exir.passes.legalize_portable_dim_order_pass'`. This
breaks every fbcode consumer of `//executorch/exir/passes:lib`,
including the arm test listing for `fold_scalar_mul_into_conv_pass`
(D112075757) and the residual `backends/arm/test:*` listing failures on
D112027047.
This adds a `legalize_portable_dim_order_pass` `runtime.python_library`
(deps mirror the sibling `memory_format_ops_pass`) and adds it to the
`:lib` target `deps`, in both `fbcode` and `xplat` `exir/passes/BUCK`.
Authored with Claude Code.
Differential Revision: D112243998
1 parent af62dce commit 5decfcd
1 file changed
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
54 | 70 | | |
55 | 71 | | |
56 | 72 | | |
| |||
0 commit comments