Skip to content

Commit

Permalink
build(bazel): disable codegen when building --//:with_compression
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.
  • Loading branch information
rkuester committed Oct 17, 2024
1 parent 884a234 commit 8e4e55e
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 @@ -39,5 +39,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 8e4e55e

Please sign in to comment.