Skip to content

Commit

Permalink
Compression target build fixes (#3008)
Browse files Browse the repository at this point in the history
Decompress_test has some issues internally due to compatibility checking.

Changed define to 1 line for easier regex for internal change.

BUG=compression BUILD fix internal
  • Loading branch information
suleshahid authored Dec 12, 2024
1 parent 39ba5a8 commit 048c954
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 1 addition & 4 deletions tensorflow/lite/micro/build_def.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,7 @@ def tflm_defines():
this function directly; however, it may be useful when additively
overriding the defaults for a particular target.
"""
defines = [
# Exclude dynamic memory use in shared TFLite code.
"TF_LITE_STATIC_MEMORY=1",
]
defines = ["TF_LITE_STATIC_MEMORY=1"]

defines += select({
# Include code for the compression feature.
Expand Down
4 changes: 4 additions & 0 deletions tensorflow/lite/micro/kernels/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -641,6 +641,10 @@ tflm_cc_test(
srcs = [
"decompress_test.cc",
],
tags = [
"nobuilder",
"notap",
],
target_compatible_with = select({
"//conditions:default": ["@platforms//:incompatible"],
"//:with_compression_enabled": [],
Expand Down

0 comments on commit 048c954

Please sign in to comment.