forked from pytorch/executorch
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTARGETS
More file actions
60 lines (55 loc) · 1.66 KB
/
TARGETS
File metadata and controls
60 lines (55 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
oncall("executorch")
runtime.python_library(
name = "example_quantizer",
srcs = [
"example_quantizer.py",
],
deps = [
"//caffe2:torch",
"//executorch/backends/example/example_operators:example_operators_lib",
"//executorch/backends/xnnpack/quantizer:xnnpack_quantizer",
],
)
runtime.python_library(
name = "example_backend",
srcs = [
"example_backend.py",
],
deps = [
"//executorch/backends/example/example_backend_delegate_passes:lib",
"//executorch/exir/backend:backend_details",
"//executorch/exir/backend:compile_spec_schema",
],
)
runtime.python_library(
name = "example_partitioner",
srcs = [
"example_partitioner.py",
],
deps = [
":example_backend",
"//caffe2:torch",
"//executorch/backends/example/example_operators:example_operators_lib",
"//executorch/exir:graph_module",
"//executorch/exir/backend:partitioner",
"//executorch/exir/backend/canonical_partitioners:canonical_partitioner_lib",
"//executorch/exir/dialects:lib",
],
)
python_unittest(
name = "test_example_delegate",
srcs = [
"test_example_delegate.py",
],
deps = [
":example_partitioner",
":example_quantizer",
"//caffe2:torch",
"//executorch/exir:delegate",
"//executorch/exir:lib",
"//executorch/exir/backend/canonical_partitioners:canonical_partitioner_lib",
"//pytorch/vision:torchvision",
],
)