Skip to content

Commit 732225f

Browse files
committed
[ET][arm] Fix missing shape.py in Buck targets for arm tosa dialect
shape.py was added to the arm tosa dialect directory but was not included in any Buck build target, causing a ModuleNotFoundError at test collection time. Fix by adding shape.py to the `core` target in both fbcode and xplat dialect BUCK files, along with the required //executorch/backends/arm/tosa:mapping dep. Also add //executorch/backends/arm/tosa/dialect:core as an explicit dep of the process_node target, which imports from shape.py.
1 parent 1056c34 commit 732225f

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

‎backends/arm/TARGETS‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ runtime.python_library(
8282
"//executorch/backends/arm/operators:node_visitor",
8383
"//executorch/backends/arm/tosa:mapping",
8484
"//executorch/backends/arm/tosa:utils",
85+
"//executorch/backends/arm/tosa/dialect:core",
8586
"//executorch/exir:lib",
8687
],
8788
)

‎backends/arm/tosa/dialect/BUCK‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@ fbcode_target(_kind = runtime.python_library,
66
srcs = [
77
"lib.py",
88
"ops_registration.py",
9+
"shape.py",
910
],
1011
deps = [
1112
"//caffe2:torch",
13+
"//executorch/backends/arm/tosa:mapping",
1214
"//executorch/backends/arm/tosa:tosa",
1315
"//executorch/exir/dialects:lib",
1416
],

0 commit comments

Comments
 (0)