Skip to content

Commit bc68d36

Browse files
authored
Remove deprecated BUILD tags (#3091)
These tags have been deprecated and are unused now. Syncing with upstream and removing them from the BUILD files. BUG=remove deprecated tags
1 parent 12cd995 commit bc68d36

File tree

19 files changed

+0
-84
lines changed

19 files changed

+0
-84
lines changed

codegen/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ py_binary(
5959
srcs = [
6060
"code_generator.py",
6161
],
62-
python_version = "PY3",
63-
srcs_version = "PY3",
6462
deps = [
6563
":graph",
6664
":inference_generator",

python/tflite_micro/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ py_library(
7373
"runtime.py",
7474
],
7575
data = [":_runtime.so"],
76-
srcs_version = "PY3",
7776
visibility = ["//visibility:public"],
7877
deps = [
7978
requirement("numpy"),
@@ -85,7 +84,6 @@ py_library(
8584
py_test(
8685
name = "runtime_test",
8786
srcs = ["runtime_test.py"],
88-
python_version = "PY3",
8987
tags = [
9088
"noasan",
9189
"nomsan", # Python doesn't like these symbols in _runtime.so

python/tflite_micro/signal/BUILD

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ py_library(
3535
"__init__.py",
3636
"ops/__init__.py",
3737
],
38-
srcs_version = "PY3",
3938
visibility = ["//visibility:public"],
4039
deps = [
4140
":delay_op",
@@ -66,8 +65,6 @@ py_test(
6665
name = "delay_op_test",
6766
size = "small",
6867
srcs = ["ops/delay_op_test.py"],
69-
python_version = "PY3",
70-
srcs_version = "PY3",
7168
tags = [
7269
"noasan",
7370
"nomsan",
@@ -99,8 +96,6 @@ py_test(
9996
data = [
10097
"//python/tflite_micro/signal/ops/testdata:energy_test1.txt",
10198
],
102-
python_version = "PY3",
103-
srcs_version = "PY3",
10499
tags = [
105100
"noasan",
106101
"nomsan",
@@ -132,8 +127,6 @@ py_test(
132127
"//python/tflite_micro/signal/ops/testdata:fft_auto_scale_test1.txt",
133128
"//python/tflite_micro/signal/ops/testdata:rfft_test1.txt",
134129
],
135-
python_version = "PY3",
136-
srcs_version = "PY3",
137130
tags = [
138131
"noasan",
139132
"nomsan",
@@ -171,8 +164,6 @@ py_test(
171164
"//python/tflite_micro/signal/ops/testdata:filter_bank_square_root_test1.txt",
172165
"//python/tflite_micro/signal/ops/testdata:filter_bank_test1.txt",
173166
],
174-
python_version = "PY3",
175-
srcs_version = "PY3",
176167
tags = [
177168
"noasan",
178169
"nomsan",
@@ -204,8 +195,6 @@ py_test(
204195
data = [
205196
"//python/tflite_micro/signal/ops/testdata:framer_test1.txt",
206197
],
207-
python_version = "PY3",
208-
srcs_version = "PY3",
209198
tags = [
210199
"noasan",
211200
"nomsan",
@@ -234,8 +223,6 @@ py_test(
234223
name = "overlap_add_op_test",
235224
size = "small",
236225
srcs = ["ops/overlap_add_op_test.py"],
237-
python_version = "PY3",
238-
srcs_version = "PY3",
239226
tags = [
240227
"noasan",
241228
"nomsan",
@@ -268,8 +255,6 @@ py_test(
268255
data = [
269256
"//python/tflite_micro/signal/ops/testdata:pcan_op_test1.txt",
270257
],
271-
python_version = "PY3",
272-
srcs_version = "PY3",
273258
tags = [
274259
"noasan",
275260
"nomsan",
@@ -301,8 +286,6 @@ py_test(
301286
data = [
302287
"//python/tflite_micro/signal/ops/testdata:stacker_test1.txt",
303288
],
304-
python_version = "PY3",
305-
srcs_version = "PY3",
306289
tags = [
307290
"noasan",
308291
"nomsan",
@@ -333,8 +316,6 @@ py_test(
333316
data = [
334317
"//python/tflite_micro/signal/ops/testdata:window_test1.txt",
335318
],
336-
python_version = "PY3",
337-
srcs_version = "PY3",
338319
tags = [
339320
"noasan",
340321
"nomsan",

python/tflite_micro/signal/utils/BUILD

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ py_test(
1616
data = [
1717
":freq_to_mel_wrapper.so",
1818
],
19-
python_version = "PY3",
20-
srcs_version = "PY3",
2119
tags = [
2220
"noasan",
2321
"nomsan",
@@ -69,8 +67,6 @@ py_test(
6967
data = [
7068
":wide_dynamic_func_lut_wrapper.so",
7169
],
72-
python_version = "PY3",
73-
srcs_version = "PY3",
7470
tags = [
7571
"noasan",
7672
"nomsan",

tensorflow/lite/micro/examples/hello_world/BUILD

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ py_binary(
4747
name = "evaluate",
4848
srcs = ["evaluate.py"],
4949
data = ["//tensorflow/lite/micro/examples/hello_world/models:hello_world_float.tflite"],
50-
python_version = "PY3",
51-
srcs_version = "PY3",
5250
deps = [
5351
"@absl_py//absl:app",
5452
"@absl_py//absl/flags",
@@ -66,8 +64,6 @@ py_binary(
6664
"//tensorflow/lite/micro/examples/hello_world/models:hello_world_float.tflite",
6765
"//tensorflow/lite/micro/examples/hello_world/models:hello_world_int8.tflite",
6866
],
69-
python_version = "PY3",
70-
srcs_version = "PY3",
7167
deps = [
7268
":evaluate",
7369
],
@@ -76,7 +72,6 @@ py_binary(
7672
py_binary(
7773
name = "train",
7874
srcs = ["train.py"],
79-
srcs_version = "PY3",
8075
deps = [
8176
requirement("numpy"),
8277
requirement("tensorflow"),

tensorflow/lite/micro/examples/hello_world/quantization/BUILD

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ py_binary(
55
name = "ptq",
66
srcs = ["ptq.py"],
77
data = ["//tensorflow/lite/micro/examples/hello_world/models:hello_world_float.tflite"],
8-
python_version = "PY3",
9-
srcs_version = "PY3",
108
deps = [
119
"@absl_py//absl:app",
1210
"@absl_py//absl/flags",

tensorflow/lite/micro/examples/micro_speech/BUILD

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,6 @@ py_binary(
207207
data = [
208208
":samples_30ms",
209209
],
210-
python_version = "PY3",
211-
srcs_version = "PY3",
212210
deps = [
213211
"@absl_py//absl:app",
214212
"@absl_py//absl/flags",
@@ -226,8 +224,6 @@ py_binary(
226224
data = [
227225
":models_tflite",
228226
],
229-
python_version = "PY3",
230-
srcs_version = "PY3",
231227
deps = [
232228
":audio_preprocessor",
233229
],
@@ -241,7 +237,6 @@ py_test(
241237
":samples_1000ms",
242238
],
243239
main = "evaluate_test.py",
244-
python_version = "PY3",
245240
tags = [
246241
"noasan",
247242
"nomsan", # Python doesn't like these symbols
@@ -260,7 +255,6 @@ py_test(
260255
":samples_30ms",
261256
],
262257
main = "audio_preprocessor_test.py",
263-
python_version = "PY3",
264258
tags = [
265259
"noasan",
266260
"nomsan", # Python doesn't like these symbols

tensorflow/lite/micro/examples/mnist_lstm/BUILD

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ load("@tflm_pip_deps//:requirements.bzl", "requirement")
44
py_binary(
55
name = "train",
66
srcs = ["train.py"],
7-
srcs_version = "PY3",
87
deps = [
98
requirement("numpy"),
109
requirement("tensorflow"),
@@ -14,7 +13,6 @@ py_binary(
1413
py_binary(
1514
name = "evaluate",
1615
srcs = ["evaluate.py"],
17-
srcs_version = "PY3",
1816
deps = [
1917
"//python/tflite_micro:runtime",
2018
"@absl_py//absl:app",
@@ -36,7 +34,6 @@ py_test(
3634
":sample_images",
3735
],
3836
main = "evaluate_test.py",
39-
python_version = "PY3",
4037
tags = [
4138
"noasan",
4239
"nomsan", # Python doesn't like these symbols

tensorflow/lite/micro/examples/person_detection/utils/BUILD

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ package(
99
py_binary(
1010
name = "raw_to_bitmap",
1111
srcs = ["raw_to_bitmap.py"],
12-
python_version = "PY3",
13-
srcs_version = "PY3ONLY",
1412
deps = [
1513
requirement("numpy"),
1614
],
@@ -19,7 +17,6 @@ py_binary(
1917
py_library(
2018
name = "raw_to_bitmap_lib",
2119
srcs = ["raw_to_bitmap.py"],
22-
srcs_version = "PY3",
2320
deps = [
2421
requirement("numpy"),
2522
],
@@ -29,7 +26,6 @@ py_test(
2926
name = "raw_to_bitmap_test",
3027
srcs = ["raw_to_bitmap_test.py"],
3128
data = glob(["testdata/**"]),
32-
python_version = "PY3",
3329
tags = [
3430
"nomicro_static", # TF dep incompatible w/ TF_LITE_STATIC_MEMORY.
3531
"notap", # TODO(b/186679612)

tensorflow/lite/micro/examples/recipes/BUILD

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ package(
88
py_library(
99
name = "add_four_numbers",
1010
srcs = ["add_four_numbers.py"],
11-
srcs_version = "PY3",
1211
visibility = ["//:__subpackages__"],
1312
deps = [
1413
requirement("numpy"),
@@ -19,7 +18,6 @@ py_library(
1918
py_library(
2019
name = "resource_variables_lib",
2120
srcs = ["resource_variables_lib.py"],
22-
srcs_version = "PY3",
2321
visibility = ["//:__subpackages__"],
2422
deps = [
2523
requirement("numpy"),
@@ -30,7 +28,6 @@ py_library(
3028
py_test(
3129
name = "resource_variables_test",
3230
srcs = ["resource_variables_test.py"],
33-
srcs_version = "PY3",
3431
tags = [
3532
"noasan",
3633
"nomsan", # Python doesn't like these symbols

0 commit comments

Comments
 (0)