diff --git a/python/tflite_micro/BUILD b/python/tflite_micro/BUILD index 53c8a3da..e0661b58 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 2bf5a94c..238ca6a7 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 32a26fb5..16047dbf 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 f2b41b37..03c94849 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 ecba3163..db9df232 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 6df2eef7..a747eee1 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 449c4be1..c18e024b 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 475e552b..4acdb657 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 1e96ba8b..cb91199d 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 a20337ac..57b1ad52 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 601e3db4..96046f4a 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 66d9b50e..b8f53a24 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 1b4c5b26..d20077c3 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 58914bcf..aad4a4c4 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 1051241d..07342bff 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 276e9c2b..7ff280f1 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(