6
6
7
7
load("@fbcode_macros//build_defs:export_files.bzl", "export_file")
8
8
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
9
+ load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
9
10
load(
10
11
"@fbsource//tools/build_defs:default_platform_defs.bzl",
11
12
"CXX",
12
13
)
13
14
load("@fbsource//xplat/executorch/codegen:codegen.bzl", "executorch_generated_lib")
14
- load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
15
15
16
16
oncall("odai_jarvis")
17
17
@@ -36,18 +36,18 @@ python_library(
36
36
"compiler.py",
37
37
],
38
38
deps = [
39
- ":passes",
40
- ":utils",
39
+ ":memory_planning",
41
40
":ops_registrations",
41
+ ":passes",
42
42
":replace_ops",
43
- ":memory_planning ",
43
+ ":utils ",
44
44
"//caffe2:torch",
45
45
"//executorch/backends/cadence/aot/quantizer:fusion_pass",
46
46
"//executorch/backends/cadence/aot/quantizer:quantizer",
47
47
"//executorch/backends/transforms:decompose_sdpa",
48
48
"//executorch/backends/transforms:remove_clone_ops",
49
- "//executorch/exir:lib",
50
49
"//executorch/devtools:lib",
50
+ "//executorch/exir:lib",
51
51
],
52
52
)
53
53
@@ -57,19 +57,19 @@ python_library(
57
57
"export_example.py",
58
58
],
59
59
deps = [
60
- ":passes",
61
- ":utils",
62
60
":ops_registrations",
61
+ ":passes",
63
62
":replace_ops",
63
+ ":utils",
64
64
"//caffe2:torch",
65
65
"//executorch/backends/cadence/aot/quantizer:fusion_pass",
66
- "//executorch/backends/cadence/runtime:runtime",
67
66
"//executorch/backends/cadence/aot/quantizer:quantizer",
68
- "//executorch/backends/xnnpack/quantizer:xnnpack_quantizer ",
67
+ "//executorch/backends/cadence/runtime:runtime ",
69
68
"//executorch/backends/transforms:decompose_sdpa",
70
69
"//executorch/backends/transforms:remove_clone_ops",
71
- "//executorch/exir:lib ",
70
+ "//executorch/backends/xnnpack/quantizer:xnnpack_quantizer ",
72
71
"//executorch/devtools:lib",
72
+ "//executorch/exir:lib",
73
73
],
74
74
)
75
75
@@ -94,12 +94,12 @@ python_library(
94
94
"passes.py",
95
95
],
96
96
deps = [
97
- ":utils",
98
97
":fuse_ops",
99
- ":simplify_ops",
100
- ":replace_ops",
101
- ":reorder_ops",
102
98
":remove_ops",
99
+ ":reorder_ops",
100
+ ":replace_ops",
101
+ ":simplify_ops",
102
+ ":utils",
103
103
"//caffe2:torch",
104
104
"//executorch/exir:pass_base",
105
105
"//executorch/exir/dialects:lib",
@@ -131,7 +131,6 @@ python_library(
131
131
],
132
132
)
133
133
134
-
135
134
export_file(name = "functions.yaml")
136
135
137
136
executorch_generated_lib(
@@ -191,9 +190,9 @@ python_library(
191
190
],
192
191
typing = True,
193
192
deps = [
194
- "//caffe2:torch",
195
- ":ops_registrations",
196
193
":compiler_utils",
194
+ ":ops_registrations",
195
+ "//caffe2:torch",
197
196
"//executorch/backends/cadence/aot:pass_utils",
198
197
"//executorch/backends/cadence/aot:utils",
199
198
"//executorch/exir:pass_base",
@@ -228,11 +227,11 @@ python_library(
228
227
"//caffe2:torch",
229
228
"//executorch/backends/cadence/aot:pass_utils",
230
229
"//executorch/backends/cadence/aot:simplify_ops",
230
+ "//executorch/backends/transforms:remove_clone_ops",
231
231
"//executorch/exir:pass_base",
232
232
"//executorch/exir/dialects:lib",
233
233
"//executorch/exir/dialects/edge:lib",
234
234
"//executorch/exir/passes:spec_prop_pass",
235
- "//executorch/backends/transforms:remove_clone_ops"
236
235
],
237
236
)
238
237
@@ -283,13 +282,13 @@ python_unittest(
283
282
],
284
283
typing = True,
285
284
deps = [
285
+ ":ops_registrations",
286
286
"//caffe2:torch",
287
287
"//executorch/backends/cadence/aot:graph_builder",
288
288
"//executorch/backends/cadence/aot:pass_utils",
289
289
"//executorch/exir:pass_base",
290
290
"//executorch/exir/dialects:lib",
291
291
"//later:lib",
292
- ":ops_registrations"
293
292
],
294
293
)
295
294
@@ -319,8 +318,10 @@ python_unittest(
319
318
srcs = [
320
319
"tests/test_fusion_ops_passes.py",
321
320
],
321
+ supports_static_listing = False,
322
322
typing = True,
323
323
deps = [
324
+ "fbsource//third-party/pypi/parameterized:parameterized",
324
325
":compiler",
325
326
"//caffe2:torch",
326
327
"//executorch/backends/cadence/aot:compiler",
@@ -391,7 +392,6 @@ python_unittest(
391
392
],
392
393
)
393
394
394
-
395
395
python_library(
396
396
name = "memory_planning",
397
397
srcs = [
@@ -409,7 +409,6 @@ python_library(
409
409
],
410
410
)
411
411
412
-
413
412
python_library(
414
413
name = "memory_constraints",
415
414
srcs = [
@@ -425,7 +424,6 @@ python_library(
425
424
],
426
425
)
427
426
428
-
429
427
python_unittest(
430
428
name = "test_memory_passes",
431
429
srcs = [
0 commit comments