1
+ load("@fbsource//tools/target_determinator/macros:fbcode_ci_helpers.bzl", "fbcode_ci")
2
+ load("@fbsource//tools/target_determinator/macros:ci.bzl", "ci")
1
3
load("@fbcode_macros//build_defs:cpp_library.bzl", "cpp_library")
2
4
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
3
5
load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
@@ -93,12 +95,12 @@ python_unittest(
93
95
],
94
96
deps = [
95
97
"//caffe2:torch",
98
+ "//executorch/backends/xnnpack/partition:xnnpack_partitioner",
96
99
"//executorch/exir:lib",
97
100
"//executorch/exir/backend:backend_api",
98
101
"//executorch/exir/backend/test:backend_with_compiler_demo",
99
102
"//executorch/exir/backend/test:op_partitioner_demo",
100
103
"//executorch/exir/serde:serialize",
101
- "//executorch/backends/xnnpack/partition:xnnpack_partitioner",
102
104
],
103
105
)
104
106
@@ -197,6 +199,9 @@ python_unittest(
197
199
":models",
198
200
"//caffe2:torch",
199
201
"//caffe2/functorch:functorch_src",
202
+ "//executorch/backends/xnnpack/partition:xnnpack_partitioner",
203
+ "//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
204
+ "//executorch/backends/xnnpack/quantizer:xnnpack_quantizer_utils",
200
205
"//executorch/exir:graph_module",
201
206
"//executorch/exir:lib",
202
207
"//executorch/exir:memory",
@@ -222,9 +227,6 @@ python_unittest(
222
227
"//executorch/exir/passes:sym_to_tensor_pass",
223
228
"//executorch/exir/program:program",
224
229
"//executorch/extension/pybindings:portable_lib", # @manual
225
- "//executorch/backends/xnnpack/partition:xnnpack_partitioner",
226
- "//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
227
- "//executorch/backends/xnnpack/quantizer:xnnpack_quantizer_utils",
228
230
],
229
231
)
230
232
@@ -312,10 +314,10 @@ python_unittest(
312
314
deps = [
313
315
"fbsource//third-party/pypi/expecttest:expecttest", # @manual
314
316
"//caffe2:torch",
317
+ "//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
315
318
"//executorch/exir:lib",
316
319
"//executorch/exir/passes:quant_fusion_pass",
317
320
"//executorch/exir/passes:spec_prop_pass",
318
- "//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
319
321
"//pytorch/vision:torchvision",
320
322
],
321
323
)
@@ -391,6 +393,7 @@ python_unittest(
391
393
srcs = [
392
394
"test_memory_format_ops_pass.py",
393
395
],
396
+ labels = ci.labels(fbcode_ci.use_opt_instead_of_dev()),
394
397
deps = [
395
398
":test_memory_format_ops_pass_utils",
396
399
"//caffe2:torch",
@@ -475,8 +478,8 @@ python_unittest(
475
478
],
476
479
deps = [
477
480
"//caffe2:torch",
481
+ "//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
478
482
"//executorch/exir:lib",
479
483
"//executorch/exir/passes:quantize_io_pass",
480
- "//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
481
484
],
482
485
)
0 commit comments