1515# Prensors provide a way to parse protocol buffers and other structured data in tensorflow
1616# simply and efficiently.
1717
18+ load ("@rules_cc//cc:cc_library.bzl" , "cc_library" )
1819# Placeholder: load py_test
1920
2021load ("//struct2tensor:struct2tensor.bzl" , "s2t_pytype_library" )
@@ -37,7 +38,6 @@ s2t_pytype_library(
3738 srcs = [
3839 "__init__.py" ,
3940 ],
40- srcs_version = "PY3ONLY" ,
4141 deps = [
4242 ":calculate_options" ,
4343 ":expression" ,
@@ -55,7 +55,6 @@ s2t_pytype_library(
5555 srcs = [
5656 "expression_impl/__init__.py" ,
5757 ],
58- srcs_version = "PY2AND3" ,
5958 deps = [
6059 ":calculate_options" ,
6160 ":expression" ,
@@ -84,7 +83,6 @@ s2t_pytype_library(
8483 srcs = [
8584 "path.py" ,
8685 ],
87- srcs_version = "PY3ONLY" ,
8886 deps = [
8987 "@com_github_tensorflow_metadata//tensorflow_metadata/proto/v0:py_metadata_v0_proto_py" ,
9088 "@com_google_protobuf//:protobuf_python" ,
@@ -100,7 +98,6 @@ s2t_pytype_library(
10098 "prensor_util.py" ,
10199 "prensor_value.py" ,
102100 ],
103- srcs_version = "PY3ONLY" ,
104101 deps = [
105102 ":calculate_options" ,
106103 ":path" ,
@@ -117,7 +114,6 @@ s2t_pytype_library(
117114 srcs = [
118115 "calculate_options.py" ,
119116 ],
120- srcs_version = "PY3ONLY" ,
121117)
122118
123119# Note: do not separate these, as eventually we want to make sure that they
@@ -146,7 +142,6 @@ s2t_pytype_library(
146142 "expression_impl/size.py" ,
147143 "expression_impl/slice_expression.py" ,
148144 ],
149- srcs_version = "PY3ONLY" ,
150145 deps = [
151146 ":calculate_options" ,
152147 ":path" ,
@@ -163,7 +158,6 @@ s2t_pytype_library(
163158 srcs = [
164159 "expression_impl/map_prensor_to_prensor.py" ,
165160 ],
166- srcs_version = "PY3ONLY" ,
167161 deps = [
168162 ":expression" ,
169163 ":path" ,
@@ -176,7 +170,6 @@ s2t_pytype_library(
176170 srcs = [
177171 "expression_impl/placeholder.py" ,
178172 ],
179- srcs_version = "PY3ONLY" ,
180173 deps = [
181174 ":expression" ,
182175 ":map_prensor_to_prensor" ,
@@ -190,7 +183,6 @@ s2t_pytype_library(
190183 srcs = [
191184 "expression_impl/parquet.py" ,
192185 ],
193- srcs_version = "PY3ONLY" ,
194186 deps = [
195187 ":expression" ,
196188 ":map_prensor_to_prensor" ,
@@ -207,7 +199,6 @@ s2t_pytype_library(
207199 srcs = [
208200 "expression_impl/proto_test_util.py" ,
209201 ],
210- srcs_version = "PY3ONLY" ,
211202 deps = [
212203 ":expression" ,
213204 "//struct2tensor/test:test_py_pb2" ,
@@ -220,7 +211,6 @@ s2t_pytype_library(
220211 srcs = [
221212 "prensor_to_structured_tensor.py" ,
222213 ],
223- srcs_version = "PY3ONLY" ,
224214 deps = [
225215 ":path" ,
226216 ":prensor" ,
@@ -232,7 +222,6 @@ s2t_pytype_library(
232222 srcs = [
233223 "structured_tensor_to_prensor.py" ,
234224 ],
235- srcs_version = "PY3ONLY" ,
236225 deps = [
237226 ":path" ,
238227 ":prensor" ,
0 commit comments