Skip to content

Commit

Permalink
build(bazel): disable codegen when building --//:with_compression (#2982
Browse files Browse the repository at this point in the history
)

The codegen prototype code is not compatible with the changes which
implement model compression made to the core TFLM components. For now,
disable codegen targets when building with compression enabled.

BUG=#2636
  • Loading branch information
rkuester authored Dec 4, 2024
1 parent bff601a commit d660678
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions codegen/build_def.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,9 @@ def tflm_inference_library(
"//tensorflow/lite/micro:micro_common",
"//tensorflow/lite/micro:micro_context",
],
target_compatible_with = select({
"//conditions:default": [],
"//:with_compression_enabled": ["@platforms//:incompatible"],
}),
visibility = visibility,
)

0 comments on commit d660678

Please sign in to comment.