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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
|
licenses(["notice"]) # Apache 2.0
load("//tensorflow:tensorflow.bzl", "tf_cc_test")
load("//tensorflow/core:platform/default/build_config.bzl", "tf_protos_all")
cc_library(
name = "function_rename",
srcs = ["function_rename.cc"],
hdrs = [
"function_rename.h",
],
visibility = ["//visibility:public"],
deps = [
":graph_utils",
"//tensorflow/core:lib",
"//tensorflow/core/grappler:graph_view",
"//tensorflow/core/grappler:grappler_item",
"//tensorflow/core/grappler:op_types",
"//tensorflow/core/grappler:utils",
"//tensorflow/core/grappler/clusters:cluster",
"//tensorflow/core/grappler/optimizers:custom_graph_optimizer",
"//tensorflow/core/grappler/optimizers:custom_graph_optimizer_registry",
] + tf_protos_all(),
)
tf_cc_test(
name = "function_rename_test",
srcs = ["function_rename_test.cc"],
visibility = ["//visibility:public"],
deps = [
":function_rename",
"//tensorflow/core:framework",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core/grappler:grappler_item",
] + tf_protos_all(),
)
cc_library(
name = "graph_utils",
srcs = ["graph_utils.cc"],
hdrs = [
"graph_utils.h",
],
visibility = ["//visibility:public"],
deps = [
"//tensorflow/core:framework",
"//tensorflow/core:lib",
"//tensorflow/core/grappler:mutable_graph_view",
"//tensorflow/core/grappler:grappler_item",
"//tensorflow/core/grappler:utils",
] + tf_protos_all(),
)
tf_cc_test(
name = "graph_utils_test",
srcs = ["graph_utils_test.cc"],
visibility = ["//visibility:public"],
deps = [
":graph_utils",
"//tensorflow/core:framework",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core:testlib",
"//tensorflow/core/grappler:grappler_item",
"//tensorflow/core/grappler/optimizers:custom_graph_optimizer",
"//tensorflow/core/grappler/optimizers:custom_graph_optimizer_registry",
"//tensorflow/core/kernels:cast_op",
],
)
cc_library(
name = "map_and_batch_fusion",
srcs = ["map_and_batch_fusion.cc"],
hdrs = [
"map_and_batch_fusion.h",
],
visibility = ["//visibility:public"],
deps = [
":graph_utils",
"//tensorflow/core:lib",
"//tensorflow/core/grappler:mutable_graph_view",
"//tensorflow/core/grappler:grappler_item",
"//tensorflow/core/grappler:op_types",
"//tensorflow/core/grappler:utils",
"//tensorflow/core/grappler/clusters:cluster",
"//tensorflow/core/grappler/optimizers:custom_graph_optimizer",
"//tensorflow/core/grappler/optimizers:custom_graph_optimizer_registry",
] + tf_protos_all(),
)
tf_cc_test(
name = "map_and_batch_fusion_test",
srcs = ["map_and_batch_fusion_test.cc"],
visibility = ["//visibility:public"],
deps = [
":graph_utils",
":map_and_batch_fusion",
"//tensorflow/core:framework",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core/grappler:grappler_item",
],
)
cc_library(
name = "noop_elimination",
srcs = ["noop_elimination.cc"],
hdrs = [
"noop_elimination.h",
],
visibility = ["//visibility:public"],
deps = [
":graph_utils",
"//tensorflow/core:lib",
"//tensorflow/core/grappler:mutable_graph_view",
"//tensorflow/core/grappler:grappler_item",
"//tensorflow/core/grappler:op_types",
"//tensorflow/core/grappler:utils",
"//tensorflow/core/grappler/clusters:cluster",
"//tensorflow/core/grappler/optimizers:custom_graph_optimizer",
"//tensorflow/core/grappler/optimizers:custom_graph_optimizer_registry",
] + tf_protos_all(),
)
tf_cc_test(
name = "noop_elimination_test",
srcs = ["noop_elimination_test.cc"],
visibility = ["//visibility:public"],
deps = [
":graph_utils",
":noop_elimination",
"//tensorflow/core:framework",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core/grappler:grappler_item",
],
)
cc_library(
name = "shuffle_and_repeat_fusion",
srcs = ["shuffle_and_repeat_fusion.cc"],
hdrs = [
"shuffle_and_repeat_fusion.h",
],
visibility = ["//visibility:public"],
deps = [
":graph_utils",
"//tensorflow/core:lib",
"//tensorflow/core/grappler:mutable_graph_view",
"//tensorflow/core/grappler:grappler_item",
"//tensorflow/core/grappler:op_types",
"//tensorflow/core/grappler:utils",
"//tensorflow/core/grappler/clusters:cluster",
"//tensorflow/core/grappler/optimizers:custom_graph_optimizer",
"//tensorflow/core/grappler/optimizers:custom_graph_optimizer_registry",
] + tf_protos_all(),
)
tf_cc_test(
name = "shuffle_and_repeat_fusion_test",
srcs = ["shuffle_and_repeat_fusion_test.cc"],
visibility = ["//visibility:public"],
deps = [
":graph_utils",
":shuffle_and_repeat_fusion",
"//tensorflow/core:framework",
"//tensorflow/core:test",
"//tensorflow/core:test_main",
"//tensorflow/core/grappler:grappler_item",
],
)
cc_library(
name = "data",
visibility = ["//visibility:public"],
deps = [
":function_rename",
":map_and_batch_fusion",
":noop_elimination",
":shuffle_and_repeat_fusion",
],
alwayslink = 1,
)
|