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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
|
# Description:
# quantization-specific OpKernels for hexagon
package(
default_visibility = ["//visibility:public"],
)
licenses(["notice"]) # Apache 2.0
load(
"//tensorflow:tensorflow.bzl",
"tf_cc_test",
"tf_kernel_library",
)
filegroup(
name = "all_files",
srcs = glob(
["**/*"],
exclude = [
"**/METADATA",
"**/OWNERS",
],
),
visibility = ["//tensorflow:__subpackages__"],
)
tf_cc_test(
name = "graph_transferer_test",
size = "small",
srcs = [
"graph_transferer_test.cc",
"hexagon_graph_execution_test.cc",
],
data = ["//tensorflow/core:example_parser_configuration_testdata"],
deps = [
":graph_transferer",
"//tensorflow/cc:cc_ops",
"//tensorflow/core:core_cpu",
"//tensorflow/core:direct_session",
"//tensorflow/core:lib",
"//tensorflow/core:ops",
"//tensorflow/core:protos_all_cc",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core:testlib",
"//tensorflow/core/kernels:cwise_op",
"//tensorflow/core/kernels:quantization_utils",
"//tensorflow/core/kernels:quantized_ops",
"//tensorflow/core/kernels:reduction_ops",
"//tensorflow/core/kernels:remote_fused_graph_execute_utils",
"//tensorflow/core/kernels:remote_fused_graph_ops",
"//tensorflow/core/kernels:reshape_op",
"//tensorflow/core/kernels:softmax_op",
],
)
tf_kernel_library(
name = "graph_transferer",
srcs = [
"graph_transfer_utils.cc",
"graph_transferer.cc",
"hexagon_control_wrapper.cc",
"hexagon_ops_definitions.cc",
"soc_interface.cc",
],
hdrs = [
"graph_transfer_utils.h",
"graph_transferer.h",
"hexagon_control_wrapper.h",
"hexagon_ops_definitions.h",
"soc_interface.h",
],
deps = [
"//tensorflow/cc:cc_ops",
"//tensorflow/cc:remote_fused_graph_ops",
"//tensorflow/cc:scope",
"//tensorflow/core",
"//tensorflow/core:core_cpu",
"//tensorflow/core:framework",
"//tensorflow/core:lib",
"//tensorflow/core:protos_all_cc",
"//tensorflow/core/kernels:remote_fused_graph_execute_utils",
"//third_party/eigen3",
],
)
cc_library(
name = "hexagon_rewriter_transform",
srcs = [
"hexagon_rewriter_transform.cc",
],
deps = [
":graph_transferer",
"//tensorflow/cc:cc_ops",
"//tensorflow/cc:remote_fused_graph_ops",
"//tensorflow/tools/graph_transforms:transform_utils",
],
alwayslink = 1,
)
tf_cc_test(
name = "hexagon_rewriter_transform_test",
size = "small",
srcs = ["hexagon_rewriter_transform_test.cc"],
deps = [
":graph_transferer",
":hexagon_rewriter_transform",
"//tensorflow/cc:cc_ops",
"//tensorflow/core:core_cpu",
"//tensorflow/core:core_cpu_internal",
"//tensorflow/core:framework",
"//tensorflow/core:tensorflow",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core:testlib",
"//tensorflow/core/kernels:remote_fused_graph_execute_utils",
"//tensorflow/tools/graph_transforms:transform_utils",
],
)
cc_library(
name = "hexagon_remote_fused_graph_executor_build",
srcs = [
"hexagon_remote_fused_graph_executor_build.cc",
],
deps = [
":graph_transferer",
"//tensorflow/core/kernels:remote_fused_graph_execute_utils",
],
alwayslink = 1,
)
tf_cc_test(
name = "hexagon_remote_fused_graph_executor_build_test",
size = "small",
srcs = ["hexagon_remote_fused_graph_executor_build_test.cc"],
deps = [
":hexagon_remote_fused_graph_executor_build",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core:testlib",
"//tensorflow/core/kernels:remote_fused_graph_execute_utils",
],
)
|