-
Notifications
You must be signed in to change notification settings - Fork 992
Expand file tree
/
Copy pathBUCK
More file actions
61 lines (56 loc) · 1.84 KB
/
BUCK
File metadata and controls
61 lines (56 loc) · 1.84 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
61
load("@fbcode_macros//build_defs:build_file_migration.bzl", "fbcode_target", "non_fbcode_target")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
oncall("executorch")
fbcode_target(_kind = 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",
],
)
fbcode_target(_kind = 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",
],
)
fbcode_target(_kind = 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",
],
)
fbcode_target(_kind = 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",
],
)