Skip to content

Commit

Permalink
Add py_library generate_test_for_model to tflite-micro package (#2667)
Browse files Browse the repository at this point in the history
This enables running bazel run
..:generate_micro_mutable_op_resolver_from_model_test when tflite_micro is installed.

BUG=partially fixing #2564
  • Loading branch information
mansnils authored Aug 19, 2024
1 parent 07e7f33 commit c01ca97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/tflite_micro/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ py_library(
visibility = ["//visibility:public"],
deps = [
requirement("numpy"),
"//tensorflow/lite/micro/tools:generate_test_for_model",
"//tensorflow/lite/tools:flatbuffer_utils",
],
)
Expand Down Expand Up @@ -132,6 +133,7 @@ py_package(
# in the tflm tree.
packages = [
"python.tflite_micro",
"tensorflow.lite.micro.tools.generate_test_for_model",
"tensorflow.lite.python",
"tensorflow.lite.tools.flatbuffer_utils",
],
Expand Down
1 change: 1 addition & 0 deletions tensorflow/lite/micro/tools/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ 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 Down

0 comments on commit c01ca97

Please sign in to comment.