Skip to content

Commit 1707f3f

Browse files
oprypintensorflower-gardener
authored andcommitted
Remove srcs_version and python_version attributes, as they already default to "PY3"
PiperOrigin-RevId: 723402567
1 parent c50d92f commit 1707f3f

File tree

39 files changed

+0
-168
lines changed

39 files changed

+0
-168
lines changed

tensorflow_model_optimization/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ exports_files(["LICENSE"])
1616
py_strict_library(
1717
name = "tensorflow_model_optimization",
1818
srcs = ["__init__.py"],
19-
srcs_version = "PY3",
2019
deps = [
2120
# distutils dep1,
2221
"//tensorflow_model_optimization/python", # buildcleaner: keep
@@ -28,7 +27,6 @@ py_strict_library(
2827
py_strict_binary(
2928
name = "build_docs",
3029
srcs = ["build_docs.py"],
31-
python_version = "PY3",
3230
deps = [
3331
# absl:app dep1,
3432
# absl/flags dep1,

tensorflow_model_optimization/python/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ licenses(["notice"])
77
py_strict_library(
88
name = "python",
99
srcs = ["__init__.py"],
10-
srcs_version = "PY3",
1110
deps = [
1211
"//tensorflow_model_optimization/python/core", # buildcleaner: keep
1312
],

tensorflow_model_optimization/python/core/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ licenses(["notice"])
77
py_strict_library(
88
name = "core",
99
srcs = ["__init__.py"],
10-
srcs_version = "PY3",
1110
deps = [
1211
"//tensorflow_model_optimization/python/core/api", # buildcleaner: keep
1312
"//tensorflow_model_optimization/python/core/clustering", # buildcleaner: keep
@@ -21,5 +20,4 @@ py_strict_library(
2120
py_strict_library(
2221
name = "version",
2322
srcs = ["version.py"],
24-
srcs_version = "PY3",
2523
)

tensorflow_model_optimization/python/core/api/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ py_strict_library(
2727
"sparsity/__init__.py",
2828
"sparsity/keras/__init__.py",
2929
],
30-
srcs_version = "PY3",
3130
deps = [
3231
"//tensorflow_model_optimization/python/core/clustering/keras:cluster",
3332
"//tensorflow_model_optimization/python/core/clustering/keras:cluster_config",

tensorflow_model_optimization/python/core/clustering/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ licenses(["notice"])
77
py_strict_library(
88
name = "clustering",
99
srcs = ["__init__.py"],
10-
srcs_version = "PY3",
1110
deps = [
1211
"//tensorflow_model_optimization/python/core/clustering/keras", # buildcleaner: keep
1312
],

tensorflow_model_optimization/python/core/clustering/keras/BUILD

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ py_strict_library(
1212
srcs = [
1313
"__init__.py",
1414
],
15-
srcs_version = "PY3",
1615
deps = [
1716
":cluster", # buildcleaner: keep
1817
":clustering_callbacks", # buildcleaner: keep
@@ -23,7 +22,6 @@ py_strict_library(
2322
py_strict_library(
2423
name = "cluster",
2524
srcs = ["cluster.py"],
26-
srcs_version = "PY3",
2725
visibility = ["//visibility:public"],
2826
deps = [
2927
":cluster_config",
@@ -37,14 +35,12 @@ py_strict_library(
3735
py_strict_library(
3836
name = "cluster_config",
3937
srcs = ["cluster_config.py"],
40-
srcs_version = "PY3",
4138
visibility = ["//visibility:public"],
4239
)
4340

4441
py_strict_library(
4542
name = "clustering_registry",
4643
srcs = ["clustering_registry.py"],
47-
srcs_version = "PY3",
4844
visibility = ["//visibility:public"],
4945
deps = [
5046
":clusterable_layer",
@@ -57,7 +53,6 @@ py_strict_library(
5753
py_strict_library(
5854
name = "clusterable_layer",
5955
srcs = ["clusterable_layer.py"],
60-
srcs_version = "PY3",
6156
visibility = ["//visibility:public"],
6257
deps = [
6358
# six dep1,
@@ -67,7 +62,6 @@ py_strict_library(
6762
py_strict_library(
6863
name = "clustering_centroids",
6964
srcs = ["clustering_centroids.py"],
70-
srcs_version = "PY3",
7165
visibility = ["//visibility:public"],
7266
deps = [
7367
":cluster_config",
@@ -81,7 +75,6 @@ py_strict_library(
8175
py_strict_library(
8276
name = "cluster_wrapper",
8377
srcs = ["cluster_wrapper.py"],
84-
srcs_version = "PY3",
8578
visibility = ["//visibility:public"],
8679
deps = [
8780
":cluster_config",
@@ -96,7 +89,6 @@ py_strict_library(
9689
py_strict_library(
9790
name = "clustering_algorithm",
9891
srcs = ["clustering_algorithm.py"],
99-
srcs_version = "PY3",
10092
visibility = ["//visibility:public"],
10193
deps = [
10294
# six dep1,
@@ -108,7 +100,6 @@ py_strict_library(
108100
py_strict_library(
109101
name = "clustering_callbacks",
110102
srcs = ["clustering_callbacks.py"],
111-
srcs_version = "PY3",
112103
visibility = ["//visibility:public"],
113104
deps = [
114105
# tensorflow dep1,
@@ -120,7 +111,6 @@ py_test(
120111
name = "cluster_test",
121112
size = "medium",
122113
srcs = ["cluster_test.py"],
123-
python_version = "PY3",
124114
visibility = ["//visibility:public"],
125115
deps = [
126116
":cluster",
@@ -140,7 +130,6 @@ py_strict_test(
140130
name = "clustering_centroids_test",
141131
size = "medium",
142132
srcs = ["clustering_centroids_test.py"],
143-
python_version = "PY3",
144133
visibility = ["//visibility:public"],
145134
deps = [
146135
":cluster_config",
@@ -157,7 +146,6 @@ py_strict_test(
157146
name = "cluster_wrapper_test",
158147
size = "medium",
159148
srcs = ["cluster_wrapper_test.py"],
160-
python_version = "PY3",
161149
visibility = ["//visibility:public"],
162150
deps = [
163151
":cluster",
@@ -175,7 +163,6 @@ py_strict_test(
175163
name = "clustering_registry_test",
176164
size = "medium",
177165
srcs = ["clustering_registry_test.py"],
178-
python_version = "PY3",
179166
visibility = ["//visibility:public"],
180167
deps = [
181168
":cluster_config",
@@ -192,7 +179,6 @@ py_test(
192179
name = "cluster_integration_test",
193180
size = "medium",
194181
srcs = ["cluster_integration_test.py"],
195-
python_version = "PY3",
196182
visibility = ["//visibility:public"],
197183
deps = [
198184
":cluster",
@@ -209,7 +195,6 @@ py_test(
209195
py_strict_test(
210196
name = "cluster_distributed_test",
211197
srcs = ["cluster_distributed_test.py"],
212-
python_version = "PY3",
213198
visibility = ["//visibility:public"],
214199
deps = [
215200
":cluster",
@@ -228,7 +213,6 @@ py_strict_test(
228213
py_strict_test(
229214
name = "mnist_clusterable_layer_test",
230215
srcs = ["mnist_clusterable_layer_test.py"],
231-
python_version = "PY3",
232216
tags = ["requires-net:external"],
233217
visibility = ["//visibility:public"],
234218
deps = [
@@ -245,7 +229,6 @@ py_strict_test(
245229
py_strict_test(
246230
name = "mnist_clustering_test",
247231
srcs = ["mnist_clustering_test.py"],
248-
python_version = "PY3",
249232
tags = ["requires-net:external"],
250233
visibility = ["//visibility:public"],
251234
deps = [

tensorflow_model_optimization/python/core/clustering/keras/experimental/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ py_strict_library(
1111
srcs = [
1212
"__init__.py",
1313
],
14-
srcs_version = "PY3",
1514
deps = [
1615
":cluster", # buildcleaner: keep
1716
],
@@ -20,7 +19,6 @@ py_strict_library(
2019
py_strict_library(
2120
name = "cluster",
2221
srcs = ["cluster.py"],
23-
srcs_version = "PY3",
2422
visibility = ["//visibility:public"],
2523
deps = [
2624
"//tensorflow_model_optimization/python/core/clustering/keras:cluster",

tensorflow_model_optimization/python/core/common/keras/compression/BUILD

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ licenses(["notice"])
55
pytype_strict_library(
66
name = "algorithm",
77
srcs = ["algorithm.py"],
8-
srcs_version = "PY3",
98
visibility = ["//visibility:public"],
109
deps = [
1110
# tensorflow dep1,
@@ -17,7 +16,6 @@ pytype_strict_library(
1716
pytype_strict_library(
1817
name = "schedules",
1918
srcs = ["schedules.py"],
20-
srcs_version = "PY3ONLY",
2119
deps = [
2220
# tensorflow dep1,
2321
],
@@ -28,7 +26,6 @@ pytype_strict_test(
2826
srcs = [
2927
"schedules_test.py",
3028
],
31-
python_version = "PY3",
3229
deps = [
3330
":schedules",
3431
# google/protobuf:use_fast_cpp_protos dep1, # Automatically added

tensorflow_model_optimization/python/core/common/keras/compression/algorithms/BUILD

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ licenses(["notice"])
77
pytype_strict_library(
88
name = "epr",
99
srcs = ["epr.py"],
10-
srcs_version = "PY3",
1110
deps = [
1211
# tensorflow dep1,
1312
# tensorflow_compression dep1,
@@ -20,7 +19,6 @@ pytype_strict_test(
2019
name = "epr_test",
2120
timeout = "long",
2221
srcs = ["epr_test.py"],
23-
python_version = "PY3",
2422
shard_count = 4,
2523
tags = [
2624
"manual", # TODO(b/284376360): Remove manual after resolve kokoro test deps issue.
@@ -38,7 +36,6 @@ pytype_strict_test(
3836
pytype_strict_library(
3937
name = "same_training_and_inference",
4038
srcs = ["same_training_and_inference.py"],
41-
srcs_version = "PY3",
4239
deps = [
4340
# tensorflow dep1,
4441
"//tensorflow_model_optimization/python/core/common/keras/compression:algorithm",
@@ -50,7 +47,6 @@ pytype_strict_test(
5047
name = "same_training_and_inference_test",
5148
timeout = "long",
5249
srcs = ["same_training_and_inference_test.py"],
53-
python_version = "PY3",
5450
tags = ["requires-net:external"],
5551
deps = [
5652
":same_training_and_inference",
@@ -64,7 +60,6 @@ pytype_strict_test(
6460
pytype_strict_library(
6561
name = "different_training_and_inference",
6662
srcs = ["different_training_and_inference.py"],
67-
srcs_version = "PY3",
6863
deps = [
6964
# tensorflow dep1,
7065
"//tensorflow_model_optimization/python/core/common/keras/compression:algorithm",
@@ -76,7 +71,6 @@ pytype_strict_test(
7671
name = "different_training_and_inference_test",
7772
timeout = "long",
7873
srcs = ["different_training_and_inference_test.py"],
79-
python_version = "PY3",
8074
tags = ["requires-net:external"],
8175
deps = [
8276
":different_training_and_inference",
@@ -90,7 +84,6 @@ pytype_strict_test(
9084
pytype_strict_library(
9185
name = "bias_only",
9286
srcs = ["bias_only.py"],
93-
srcs_version = "PY3",
9487
deps = [
9588
# tensorflow dep1,
9689
"//tensorflow_model_optimization/python/core/common/keras/compression:algorithm",
@@ -102,7 +95,6 @@ pytype_strict_test(
10295
name = "bias_only_test",
10396
timeout = "long",
10497
srcs = ["bias_only_test.py"],
105-
python_version = "PY3",
10698
tags = ["requires-net:external"],
10799
deps = [
108100
":bias_only",
@@ -116,7 +108,6 @@ pytype_strict_test(
116108
pytype_strict_library(
117109
name = "weight_clustering",
118110
srcs = ["weight_clustering.py"],
119-
srcs_version = "PY3",
120111
deps = [
121112
# tensorflow dep1,
122113
"//tensorflow_model_optimization/python/core/clustering/keras:cluster_config",
@@ -130,7 +121,6 @@ pytype_strict_library(
130121
pytype_strict_test(
131122
name = "weight_clustering_test",
132123
srcs = ["weight_clustering_test.py"],
133-
python_version = "PY3",
134124
tags = ["requires-net:external"],
135125
deps = [
136126
":weight_clustering",
@@ -144,7 +134,6 @@ pytype_strict_test(
144134
pytype_strict_library(
145135
name = "periodical_update_and_scheduling",
146136
srcs = ["periodical_update_and_scheduling.py"],
147-
srcs_version = "PY3",
148137
deps = [
149138
# tensorflow dep1,
150139
"//tensorflow_model_optimization/python/core/common/keras/compression:algorithm",
@@ -156,7 +145,6 @@ pytype_strict_test(
156145
name = "periodical_update_and_scheduling_test",
157146
timeout = "long",
158147
srcs = ["periodical_update_and_scheduling_test.py"],
159-
python_version = "PY3",
160148
tags = ["requires-net:external"],
161149
deps = [
162150
":periodical_update_and_scheduling",

tensorflow_model_optimization/python/core/common/keras/compression/internal/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ licenses(["notice"])
99
pytype_strict_library(
1010
name = "optimize",
1111
srcs = ["optimize.py"],
12-
srcs_version = "PY3",
1312
deps = [
1413
# tensorflow dep1,
1514
"//tensorflow_model_optimization/python/core/keras:compat",

tensorflow_model_optimization/python/core/internal/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ licenses(["notice"])
77
py_strict_library(
88
name = "internal",
99
srcs = ["__init__.py"],
10-
srcs_version = "PY3",
1110
deps = [
1211
"//tensorflow_model_optimization/python/core/internal/tensor_encoding",
1312
],

tensorflow_model_optimization/python/core/internal/tensor_encoding/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ licenses(["notice"])
77
py_strict_library(
88
name = "tensor_encoding",
99
srcs = ["__init__.py"],
10-
srcs_version = "PY3",
1110
deps = [
1211
"//tensorflow_model_optimization/python/core/internal/tensor_encoding/core",
1312
"//tensorflow_model_optimization/python/core/internal/tensor_encoding/encoders",

tensorflow_model_optimization/python/core/internal/tensor_encoding/core/BUILD

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ py_strict_test(
3333
name = "core_encoder_test",
3434
size = "small",
3535
srcs = ["core_encoder_test.py"],
36-
python_version = "PY3",
3736
deps = [
3837
":core_encoder",
3938
":encoding_stage",
@@ -57,7 +56,6 @@ py_strict_test(
5756
name = "encoding_stage_test",
5857
size = "small",
5958
srcs = ["encoding_stage_test.py"],
60-
python_version = "PY3",
6159
deps = [
6260
":encoding_stage",
6361
# absl/testing:parameterized dep1,
@@ -83,7 +81,6 @@ py_strict_test(
8381
name = "gather_encoder_test",
8482
size = "small",
8583
srcs = ["gather_encoder_test.py"],
86-
python_version = "PY3",
8784
deps = [
8885
":core_encoder",
8986
":encoding_stage",
@@ -111,7 +108,6 @@ py_strict_test(
111108
name = "simple_encoder_test",
112109
size = "small",
113110
srcs = ["simple_encoder_test.py"],
114-
python_version = "PY3",
115111
deps = [
116112
":core_encoder",
117113
":simple_encoder",

tensorflow_model_optimization/python/core/internal/tensor_encoding/encoders/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ py_strict_test(
3131
name = "common_encoders_test",
3232
size = "small",
3333
srcs = ["common_encoders_test.py"],
34-
python_version = "PY3",
3534
deps = [
3635
":common_encoders",
3736
# absl/testing:parameterized dep1,

tensorflow_model_optimization/python/core/internal/tensor_encoding/stages/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ py_strict_test(
3131
name = "stages_impl_test",
3232
size = "medium",
3333
srcs = ["stages_impl_test.py"],
34-
python_version = "PY3",
3534
deps = [
3635
":stages_impl",
3736
# absl/testing:parameterized dep1,

0 commit comments

Comments
 (0)