-
Notifications
You must be signed in to change notification settings - Fork 24
/
BUILD
58 lines (55 loc) · 1.51 KB
/
BUILD
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
package(default_visibility = ["//visibility:public"])
cc_library(
name = "vx_delegate",
copts = ["-std=c++14","-w"],
srcs = [
"delegate_main.cc",
"op_map.cc",
"utils.cc",
],
hdrs = [
"delegate_main.h",
"op_map.h",
"utils.h",
],
deps = [
"@org_tensorflow//tensorflow/lite:framework",
"@org_tensorflow//tensorflow/lite/kernels/internal:reference_base",
"@org_tensorflow//tensorflow/lite/tools:logging",
"@tim_vx//prebuilt-sdk:VIV_SDK_LIB",
"@tim_vx//:tim-vx_interface",
],
linkstatic=True,
)
cc_binary(
name = "vx_delegate.so",
copts = ["-std=c++14","-w"],
srcs = [
"vx_delegate_adaptor.cc",
],
linkshared = 1,
linkstatic = 1,
deps = [
":vx_delegate",
"@org_tensorflow//tensorflow/lite/c:common",
"@org_tensorflow//tensorflow/lite/tools:command_line_flags",
],
)
cc_test(
name = "vx_delegate_test",
copts = ["-std=c++14","-w"],
size = "small",
srcs = [
"vx_delegate_test.cc",
],
deps = [
":vx_delegate",
"@org_tensorflow//tensorflow/lite:framework",
"@org_tensorflow//tensorflow/lite:minimal_logging",
"@org_tensorflow//tensorflow/lite/c:common",
"@org_tensorflow//tensorflow/lite/kernels:test_util",
"@org_tensorflow//tensorflow/lite/nnapi:nnapi_implementation",
"@org_tensorflow//tensorflow/lite/nnapi:nnapi_lib",
"@com_google_googletest//:gtest",
],
)