Skip to content

Commit

Permalink
feat(compression): update model compression tools
Browse files Browse the repository at this point in the history
  • Loading branch information
rkuester committed Nov 14, 2024
1 parent 6eac102 commit 661ad5e
Show file tree
Hide file tree
Showing 16 changed files with 737 additions and 888 deletions.
41 changes: 22 additions & 19 deletions tensorflow/lite/micro/compression/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,9 @@ py_binary(
"compress.py",
],
deps = [
":lib",
":metadata_py",
":model_facade",
":spec",
"//tensorflow/lite/python:schema_py",
"@absl_py//absl:app",
"@absl_py//absl/flags",
Expand All @@ -93,6 +94,7 @@ py_test(
],
deps = [
":compress",
":model_facade",
requirement("tensorflow"),
],
)
Expand Down Expand Up @@ -150,24 +152,6 @@ sh_test(
],
)

py_library(
name = "lib",
srcs = ["lib.py"],
deps = [
"model_facade",
],
)

py_test(
name = "lib_test",
size = "small",
srcs = ["lib_test.py"],
deps = [
"lib",
requirement("tensorflow"),
],
)

py_library(
name = "model_facade",
srcs = ["model_facade.py"],
Expand All @@ -183,6 +167,7 @@ py_library(
deps = [
"//tensorflow/lite/python:schema_py",
requirement("flatbuffers"),
requirement("numpy"),
],
)

Expand All @@ -206,3 +191,21 @@ py_test(
requirement("tensorflow"),
],
)

py_library(
name = "spec",
srcs = ["spec.py"],
deps = [
requirement("pyyaml"),
],
)

py_test(
name = "spec_test",
size = "small",
srcs = ["spec_test.py"],
deps = [
":spec",
requirement("tensorflow"),
],
)
Loading

0 comments on commit 661ad5e

Please sign in to comment.