Skip to content

Remove deprecated BUILD tags #3091

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions codegen/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,6 @@ py_binary(
srcs = [
"code_generator.py",
],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":graph",
":inference_generator",
Expand Down
2 changes: 0 additions & 2 deletions python/tflite_micro/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ py_library(
"runtime.py",
],
data = [":_runtime.so"],
srcs_version = "PY3",
visibility = ["//visibility:public"],
deps = [
requirement("numpy"),
Expand All @@ -85,7 +84,6 @@ py_library(
py_test(
name = "runtime_test",
srcs = ["runtime_test.py"],
python_version = "PY3",
tags = [
"noasan",
"nomsan", # Python doesn't like these symbols in _runtime.so
Expand Down
19 changes: 0 additions & 19 deletions python/tflite_micro/signal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ py_library(
"__init__.py",
"ops/__init__.py",
],
srcs_version = "PY3",
visibility = ["//visibility:public"],
deps = [
":delay_op",
Expand Down Expand Up @@ -66,8 +65,6 @@ py_test(
name = "delay_op_test",
size = "small",
srcs = ["ops/delay_op_test.py"],
python_version = "PY3",
srcs_version = "PY3",
tags = [
"noasan",
"nomsan",
Expand Down Expand Up @@ -99,8 +96,6 @@ py_test(
data = [
"//python/tflite_micro/signal/ops/testdata:energy_test1.txt",
],
python_version = "PY3",
srcs_version = "PY3",
tags = [
"noasan",
"nomsan",
Expand Down Expand Up @@ -132,8 +127,6 @@ py_test(
"//python/tflite_micro/signal/ops/testdata:fft_auto_scale_test1.txt",
"//python/tflite_micro/signal/ops/testdata:rfft_test1.txt",
],
python_version = "PY3",
srcs_version = "PY3",
tags = [
"noasan",
"nomsan",
Expand Down Expand Up @@ -171,8 +164,6 @@ py_test(
"//python/tflite_micro/signal/ops/testdata:filter_bank_square_root_test1.txt",
"//python/tflite_micro/signal/ops/testdata:filter_bank_test1.txt",
],
python_version = "PY3",
srcs_version = "PY3",
tags = [
"noasan",
"nomsan",
Expand Down Expand Up @@ -204,8 +195,6 @@ py_test(
data = [
"//python/tflite_micro/signal/ops/testdata:framer_test1.txt",
],
python_version = "PY3",
srcs_version = "PY3",
tags = [
"noasan",
"nomsan",
Expand Down Expand Up @@ -234,8 +223,6 @@ py_test(
name = "overlap_add_op_test",
size = "small",
srcs = ["ops/overlap_add_op_test.py"],
python_version = "PY3",
srcs_version = "PY3",
tags = [
"noasan",
"nomsan",
Expand Down Expand Up @@ -268,8 +255,6 @@ py_test(
data = [
"//python/tflite_micro/signal/ops/testdata:pcan_op_test1.txt",
],
python_version = "PY3",
srcs_version = "PY3",
tags = [
"noasan",
"nomsan",
Expand Down Expand Up @@ -301,8 +286,6 @@ py_test(
data = [
"//python/tflite_micro/signal/ops/testdata:stacker_test1.txt",
],
python_version = "PY3",
srcs_version = "PY3",
tags = [
"noasan",
"nomsan",
Expand Down Expand Up @@ -333,8 +316,6 @@ py_test(
data = [
"//python/tflite_micro/signal/ops/testdata:window_test1.txt",
],
python_version = "PY3",
srcs_version = "PY3",
tags = [
"noasan",
"nomsan",
Expand Down
4 changes: 0 additions & 4 deletions python/tflite_micro/signal/utils/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ py_test(
data = [
":freq_to_mel_wrapper.so",
],
python_version = "PY3",
srcs_version = "PY3",
tags = [
"noasan",
"nomsan",
Expand Down Expand Up @@ -69,8 +67,6 @@ py_test(
data = [
":wide_dynamic_func_lut_wrapper.so",
],
python_version = "PY3",
srcs_version = "PY3",
tags = [
"noasan",
"nomsan",
Expand Down
5 changes: 0 additions & 5 deletions tensorflow/lite/micro/examples/hello_world/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ py_binary(
name = "evaluate",
srcs = ["evaluate.py"],
data = ["//tensorflow/lite/micro/examples/hello_world/models:hello_world_float.tflite"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
"@absl_py//absl:app",
"@absl_py//absl/flags",
Expand All @@ -66,8 +64,6 @@ py_binary(
"//tensorflow/lite/micro/examples/hello_world/models:hello_world_float.tflite",
"//tensorflow/lite/micro/examples/hello_world/models:hello_world_int8.tflite",
],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":evaluate",
],
Expand All @@ -76,7 +72,6 @@ py_binary(
py_binary(
name = "train",
srcs = ["train.py"],
srcs_version = "PY3",
deps = [
requirement("numpy"),
requirement("tensorflow"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ py_binary(
name = "ptq",
srcs = ["ptq.py"],
data = ["//tensorflow/lite/micro/examples/hello_world/models:hello_world_float.tflite"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
"@absl_py//absl:app",
"@absl_py//absl/flags",
Expand Down
6 changes: 0 additions & 6 deletions tensorflow/lite/micro/examples/micro_speech/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,6 @@ py_binary(
data = [
":samples_30ms",
],
python_version = "PY3",
srcs_version = "PY3",
deps = [
"@absl_py//absl:app",
"@absl_py//absl/flags",
Expand All @@ -226,8 +224,6 @@ py_binary(
data = [
":models_tflite",
],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":audio_preprocessor",
],
Expand All @@ -241,7 +237,6 @@ py_test(
":samples_1000ms",
],
main = "evaluate_test.py",
python_version = "PY3",
tags = [
"noasan",
"nomsan", # Python doesn't like these symbols
Expand All @@ -260,7 +255,6 @@ py_test(
":samples_30ms",
],
main = "audio_preprocessor_test.py",
python_version = "PY3",
tags = [
"noasan",
"nomsan", # Python doesn't like these symbols
Expand Down
3 changes: 0 additions & 3 deletions tensorflow/lite/micro/examples/mnist_lstm/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ load("@tflm_pip_deps//:requirements.bzl", "requirement")
py_binary(
name = "train",
srcs = ["train.py"],
srcs_version = "PY3",
deps = [
requirement("numpy"),
requirement("tensorflow"),
Expand All @@ -14,7 +13,6 @@ py_binary(
py_binary(
name = "evaluate",
srcs = ["evaluate.py"],
srcs_version = "PY3",
deps = [
"//python/tflite_micro:runtime",
"@absl_py//absl:app",
Expand All @@ -36,7 +34,6 @@ py_test(
":sample_images",
],
main = "evaluate_test.py",
python_version = "PY3",
tags = [
"noasan",
"nomsan", # Python doesn't like these symbols
Expand Down
4 changes: 0 additions & 4 deletions tensorflow/lite/micro/examples/person_detection/utils/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ package(
py_binary(
name = "raw_to_bitmap",
srcs = ["raw_to_bitmap.py"],
python_version = "PY3",
srcs_version = "PY3ONLY",
deps = [
requirement("numpy"),
],
Expand All @@ -19,7 +17,6 @@ py_binary(
py_library(
name = "raw_to_bitmap_lib",
srcs = ["raw_to_bitmap.py"],
srcs_version = "PY3",
deps = [
requirement("numpy"),
],
Expand All @@ -29,7 +26,6 @@ py_test(
name = "raw_to_bitmap_test",
srcs = ["raw_to_bitmap_test.py"],
data = glob(["testdata/**"]),
python_version = "PY3",
tags = [
"nomicro_static", # TF dep incompatible w/ TF_LITE_STATIC_MEMORY.
"notap", # TODO(b/186679612)
Expand Down
3 changes: 0 additions & 3 deletions tensorflow/lite/micro/examples/recipes/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ package(
py_library(
name = "add_four_numbers",
srcs = ["add_four_numbers.py"],
srcs_version = "PY3",
visibility = ["//:__subpackages__"],
deps = [
requirement("numpy"),
Expand All @@ -19,7 +18,6 @@ py_library(
py_library(
name = "resource_variables_lib",
srcs = ["resource_variables_lib.py"],
srcs_version = "PY3",
visibility = ["//:__subpackages__"],
deps = [
requirement("numpy"),
Expand All @@ -30,7 +28,6 @@ py_library(
py_test(
name = "resource_variables_test",
srcs = ["resource_variables_test.py"],
srcs_version = "PY3",
tags = [
"noasan",
"nomsan", # Python doesn't like these symbols
Expand Down
2 changes: 0 additions & 2 deletions tensorflow/lite/micro/integration_tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ py_binary(
"templates/BUILD.mako",
"templates/integration_tests_cc.mako",
],
python_version = "PY3",
srcs_version = "PY3",
visibility = ["//:__subpackages__"],
deps = [
"@absl_py//absl:app",
Expand Down
2 changes: 0 additions & 2 deletions tensorflow/lite/micro/kernels/testdata/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ py_binary(
"lstm_test_data_generator.py",
"lstm_test_data_utils.py",
],
srcs_version = "PY3",
deps = [
"@absl_py//absl:app",
requirement("numpy"),
Expand All @@ -57,7 +56,6 @@ py_test(
name = "lstm_test_data_generator_test",
srcs = ["lstm_test_data_generator_test.py"],
main = "lstm_test_data_generator_test.py",
python_version = "PY3",
tags = [
"noasan",
"nomsan", # Python doesn't like these symbols
Expand Down
2 changes: 0 additions & 2 deletions tensorflow/lite/micro/python/tflite_size/src/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,13 @@ py_library(
data = [
":flatbuffer_size_wrapper_pybind.so",
],
srcs_version = "PY3",
)

py_binary(
name = "flatbuffer_size",
srcs = [
"flatbuffer_size.py",
],
srcs_version = "PY3",
deps = [
":flatbuffer_size_lib",
],
Expand Down
1 change: 0 additions & 1 deletion tensorflow/lite/micro/python/tflite_size/tests/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ py_test(
":test_resources",
],
main = "flatbuffer_size_test.py",
python_version = "PY3",
tags = [
"noasan",
"nomsan", # Python doesn't like these symbols from flatbuffer_size_wrapper_pybind.so
Expand Down
2 changes: 0 additions & 2 deletions tensorflow/lite/micro/testing/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,6 @@ py_library(
py_binary(
name = "generate_test_models",
srcs = ["generate_test_models.py"],
python_version = "PY3",
srcs_version = "PY3ONLY",
tags = [
"nomicro_static", # TF dep incompatible w/ TF_LITE_STATIC_MEMORY.
"noubsan", # TODO(b/144512025): Fix raw_to_bitmap_test to fix ubsan failure.
Expand Down
10 changes: 0 additions & 10 deletions tensorflow/lite/micro/tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ py_library(
py_library(
name = "generate_test_for_model",
srcs = ["generate_test_for_model.py"],
srcs_version = "PY3",
visibility = ["//:__subpackages__"],
deps = [
"//tensorflow/lite/python:schema_py",
Expand All @@ -53,7 +52,6 @@ py_binary(
"requantize_flatbuffer.py",
"requantize_flatbuffer_utils.py",
],
srcs_version = "PY3",
deps = [
"//tensorflow/lite/python:schema_py",
"//tensorflow/lite/tools:flatbuffer_utils",
Expand All @@ -65,7 +63,6 @@ py_test(
name = "requantize_flatbuffer_test",
srcs = ["requantize_flatbuffer_test.py"],
main = "requantize_flatbuffer_test.py",
python_version = "PY3",
tags = [
"noasan",
"nomsan", # Python doesn't like these symbols
Expand Down Expand Up @@ -109,7 +106,6 @@ py_library(
data = [
":tflite_flatbuffer_align_wrapper.so",
],
srcs_version = "PY3",
visibility = [
":application_friends",
":tflm_tools",
Expand All @@ -126,7 +122,6 @@ py_library(
data = [
":tflite_flatbuffer_align",
],
srcs_version = "PY3",
visibility = [
":application_friends",
":tflm_tools",
Expand Down Expand Up @@ -167,8 +162,6 @@ cc_binary(
py_binary(
name = "tflm_model_transforms",
srcs = ["tflm_model_transforms.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":tflm_model_transforms_lib",
"@absl_py//absl:app",
Expand All @@ -184,7 +177,6 @@ py_test(
"//tensorflow/lite/micro/models",
],
main = "tflm_model_transforms_test.py",
python_version = "PY3",
tags = [
"noasan",
"nomsan",
Expand All @@ -201,8 +193,6 @@ py_test(
py_binary(
name = "layer_by_layer_debugger",
srcs = ["layer_by_layer_debugger.py"],
python_version = "PY3",
srcs_version = "PY3",
deps = [
":layer_by_layer_schema_py",
":model_transforms_utils",
Expand Down
Loading
Loading