diff --git a/python/tflite_micro/BUILD b/python/tflite_micro/BUILD index 53c8a3da166..e0661b58560 100644 --- a/python/tflite_micro/BUILD +++ b/python/tflite_micro/BUILD @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_library", "py_test") load("@pybind11_bazel//:build_defs.bzl", "pybind_extension") load("//python:py_namespace.bzl", "py_namespace") load("@rules_python//python:packaging.bzl", "py_package", "py_wheel") diff --git a/python/tflite_micro/signal/BUILD b/python/tflite_micro/signal/BUILD index 2bf5a94ccc0..238ca6a783d 100644 --- a/python/tflite_micro/signal/BUILD +++ b/python/tflite_micro/signal/BUILD @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_library", "py_test") load("//python/tflite_micro/signal:tflm_signal.bzl", "py_tflm_signal_library") load("//tensorflow:extra_rules.bzl", "tflm_signal_friends") load("@tflm_pip_deps//:requirements.bzl", "requirement") diff --git a/python/tflite_micro/signal/utils/BUILD b/python/tflite_micro/signal/utils/BUILD index 32a26fb5513..16047dbffaf 100644 --- a/python/tflite_micro/signal/utils/BUILD +++ b/python/tflite_micro/signal/utils/BUILD @@ -1,4 +1,6 @@ # Signal python utilities. +load("@rules_python//python:defs.bzl", "py_library") +load("@rules_python//python:defs.bzl", "py_test") load("@tflm_pip_deps//:requirements.bzl", "requirement") load("@pybind11_bazel//:build_defs.bzl", "pybind_extension") diff --git a/tensorflow/lite/micro/examples/hello_world/BUILD b/tensorflow/lite/micro/examples/hello_world/BUILD index f2b41b37518..03c9484983e 100644 --- a/tensorflow/lite/micro/examples/hello_world/BUILD +++ b/tensorflow/lite/micro/examples/hello_world/BUILD @@ -1,5 +1,6 @@ # Description: # TensorFlow Lite for Microcontrollers "hello world" example. +load("@rules_python//python:defs.bzl", "py_binary") load("@tflm_pip_deps//:requirements.bzl", "requirement") load( "//tensorflow/lite/micro:build_def.bzl", diff --git a/tensorflow/lite/micro/examples/hello_world/quantization/BUILD b/tensorflow/lite/micro/examples/hello_world/quantization/BUILD index ecba31638a2..db9df232800 100644 --- a/tensorflow/lite/micro/examples/hello_world/quantization/BUILD +++ b/tensorflow/lite/micro/examples/hello_world/quantization/BUILD @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_binary") load("@tflm_pip_deps//:requirements.bzl", "requirement") py_binary( diff --git a/tensorflow/lite/micro/examples/mnist_lstm/BUILD b/tensorflow/lite/micro/examples/mnist_lstm/BUILD index 6df2eef7400..a747eee15c3 100644 --- a/tensorflow/lite/micro/examples/mnist_lstm/BUILD +++ b/tensorflow/lite/micro/examples/mnist_lstm/BUILD @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_binary", "py_test") load("@tflm_pip_deps//:requirements.bzl", "requirement") py_binary( diff --git a/tensorflow/lite/micro/examples/person_detection/BUILD b/tensorflow/lite/micro/examples/person_detection/BUILD index 449c4be11da..c18e024b268 100644 --- a/tensorflow/lite/micro/examples/person_detection/BUILD +++ b/tensorflow/lite/micro/examples/person_detection/BUILD @@ -1,5 +1,6 @@ # Description: # TensorFlow Lite for Microcontrollers Vision Example. +load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test") load("//tensorflow/lite/micro:build_def.bzl", "generate_cc_arrays") package( diff --git a/tensorflow/lite/micro/examples/recipes/BUILD b/tensorflow/lite/micro/examples/recipes/BUILD index 475e552b619..4acdb657b01 100644 --- a/tensorflow/lite/micro/examples/recipes/BUILD +++ b/tensorflow/lite/micro/examples/recipes/BUILD @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_library", "py_test") load("@tflm_pip_deps//:requirements.bzl", "requirement") package( diff --git a/tensorflow/lite/micro/integration_tests/BUILD b/tensorflow/lite/micro/integration_tests/BUILD index 1e96ba8b60f..cb91199dcfe 100644 --- a/tensorflow/lite/micro/integration_tests/BUILD +++ b/tensorflow/lite/micro/integration_tests/BUILD @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_binary") load("@tflm_pip_deps//:requirements.bzl", "requirement") package(licenses = ["notice"]) diff --git a/tensorflow/lite/micro/kernels/testdata/BUILD b/tensorflow/lite/micro/kernels/testdata/BUILD index a20337ac434..57b1ad52ce6 100644 --- a/tensorflow/lite/micro/kernels/testdata/BUILD +++ b/tensorflow/lite/micro/kernels/testdata/BUILD @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_binary", "py_test") load("@tflm_pip_deps//:requirements.bzl", "requirement") package( diff --git a/tensorflow/lite/micro/python/interpreter/src/BUILD b/tensorflow/lite/micro/python/interpreter/src/BUILD index 601e3db4077..96046f4afe0 100644 --- a/tensorflow/lite/micro/python/interpreter/src/BUILD +++ b/tensorflow/lite/micro/python/interpreter/src/BUILD @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_library") load( "//tensorflow/lite/micro:build_def.bzl", "micro_copts", diff --git a/tensorflow/lite/micro/python/tflite_size/src/BUILD b/tensorflow/lite/micro/python/tflite_size/src/BUILD index 66d9b50ee6b..b8f53a24f42 100644 --- a/tensorflow/lite/micro/python/tflite_size/src/BUILD +++ b/tensorflow/lite/micro/python/tflite_size/src/BUILD @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_binary", "py_library") load("@pybind11_bazel//:build_defs.bzl", "pybind_extension", "pybind_library") package( diff --git a/tensorflow/lite/micro/python/tflite_size/tests/BUILD b/tensorflow/lite/micro/python/tflite_size/tests/BUILD index 1b4c5b26c30..d20077c3c73 100644 --- a/tensorflow/lite/micro/python/tflite_size/tests/BUILD +++ b/tensorflow/lite/micro/python/tflite_size/tests/BUILD @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_test") load("@tflm_pip_deps//:requirements.bzl", "requirement") licenses(["notice"]) diff --git a/tensorflow/lite/micro/testing/BUILD b/tensorflow/lite/micro/testing/BUILD index 58914bcf9fa..aad4a4c4f9a 100644 --- a/tensorflow/lite/micro/testing/BUILD +++ b/tensorflow/lite/micro/testing/BUILD @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_binary", "py_library") load("@tflm_pip_deps//:requirements.bzl", "requirement") load( "//tensorflow:extra_rules.bzl", diff --git a/tensorflow/lite/micro/tools/BUILD b/tensorflow/lite/micro/tools/BUILD index 1051241d8f4..07342bff1d3 100644 --- a/tensorflow/lite/micro/tools/BUILD +++ b/tensorflow/lite/micro/tools/BUILD @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_binary", "py_library", "py_test") load("@tflm_pip_deps//:requirements.bzl", "requirement") load("@pybind11_bazel//:build_defs.bzl", "pybind_extension") load("//tensorflow:extra_rules.bzl", "tflm_application_friends") diff --git a/tensorflow/lite/micro/tools/gen_micro_mutable_op_resolver/BUILD b/tensorflow/lite/micro/tools/gen_micro_mutable_op_resolver/BUILD index 276e9c2bbc7..7ff280f1713 100644 --- a/tensorflow/lite/micro/tools/gen_micro_mutable_op_resolver/BUILD +++ b/tensorflow/lite/micro/tools/gen_micro_mutable_op_resolver/BUILD @@ -1,3 +1,4 @@ +load("@rules_python//python:defs.bzl", "py_binary") load("@tflm_pip_deps//:requirements.bzl", "requirement") package(