File tree Expand file tree Collapse file tree 5 files changed +17
-0
lines changed Expand file tree Collapse file tree 5 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ python_library(
7
7
"//executorch/backends/arm:tosa_quant_utils",
8
8
"//executorch/backends/arm:tosa_utils",
9
9
"//executorch/backends/transforms:fuse_view_copy",
10
+ "//executorch/backends/transforms:remove_getitem_op",
10
11
"//executorch/backends/transforms:replace_scalar_with_tensor",
11
12
"//executorch/backends/xnnpack/_passes:xnnpack_passes",
12
13
"//executorch/exir:lib",
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ python_library(
6
6
deps = [
7
7
"//executorch/backends/arm/_passes:passes",
8
8
"//executorch/backends/arm:tosa_specification",
9
+ "//executorch/backends/transforms:remove_getitem_op",
9
10
"//executorch/backends/xnnpack/_passes:xnnpack_passes",
10
11
"//executorch/exir:lib",
11
12
],
Original file line number Diff line number Diff line change @@ -117,6 +117,19 @@ def define_common_targets():
117
117
],
118
118
)
119
119
120
+ runtime .python_library (
121
+ name = "remove_getitem_op" ,
122
+ srcs = ["remove_getitem_op.py" ],
123
+ visibility = [
124
+ "//executorch/backends/..." ,
125
+ ],
126
+ deps = [
127
+ "//caffe2:torch" ,
128
+ "//executorch/exir:pass_base" ,
129
+ "//executorch/exir/dialects:lib" ,
130
+ ],
131
+ )
132
+
120
133
runtime .python_library (
121
134
name = "mean_to_sum_div" ,
122
135
srcs = ["mean_to_sum_div.py" ],
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ runtime.python_library(
16
16
],
17
17
deps = [
18
18
"//executorch/backends/transforms:lib",
19
+ "//executorch/backends/transforms:remove_getitem_op",
19
20
"//executorch/backends/xnnpack/_passes:xnnpack_passes",
20
21
"//executorch/backends/xnnpack/operators:operators",
21
22
"//executorch/backends/xnnpack/serialization:xnnpack_serializer",
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ runtime.python_test(
13
13
"test_xnnpack_utils_classes.py",
14
14
],
15
15
deps = [
16
+ "//executorch/backends/transforms:remove_getitem_op",
16
17
"//executorch/backends/xnnpack/_passes:xnnpack_passes",
17
18
"//executorch/backends/xnnpack/test/tester:tester",
18
19
"//executorch/backends/xnnpack/utils:xnnpack_utils",
You can’t perform that action at this time.
0 commit comments