-
Notifications
You must be signed in to change notification settings - Fork 508
/
Copy pathTARGETS
43 lines (38 loc) · 1.58 KB
/
TARGETS
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
# Any targets that should be shared between fbcode and xplat must be defined in
# targets.bzl. This file can contain fbcode-only targets.
load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")
load("@fbsource//xplat/executorch/build:runtime_wrapper.bzl", "runtime")
load("@fbsource//xplat/executorch/backends/qualcomm/qnn_version.bzl", "get_qnn_library_verision")
oncall("executorch")
python_binary(
name = "export_example",
srcs = ["scripts/export_example.py"],
main_function = ".scripts.export_example.main",
visibility = ["//executorch/examples/..."],
deps = [
"//caffe2:torch",
"//executorch/extension/pybindings:aten_lib",
"//executorch/backends/qualcomm/partition:partition",
"//executorch/backends/qualcomm/quantizer:quantizer",
"//executorch/devtools:lib",
"//executorch/examples/models:models",
"//executorch/extension/export_util:export_util",
],
)
runtime.command_alias(
name = "export_example_qnn",
env = {
"LD_LIBRARY_PATH": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:qnn_offline_compile_libs)".format(get_qnn_library_verision()),
"QNN_SDK_ROOT": "$(location fbsource//third-party/qualcomm/qnn/qnn-{0}:__dir__)".format(get_qnn_library_verision()),
},
exe = ":export_example",
)
python_library(
name = "utils",
srcs = ["utils.py"],
deps = [
"//executorch/backends/qualcomm/partition:partition",
"//executorch/backends/qualcomm/quantizer:quantizer",
],
)