Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions python/tflite_micro/pypi_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ IMAGE_ID=$(cat $IMAGE_ID_FILE)

# Build the Python package within an ephemeral container.
docker run \
--init \
--rm \
--interactive \
--mount type=bind,source=$SRCDIR,destination=$SRCDIR \
Expand Down
14 changes: 0 additions & 14 deletions python/tflite_micro/signal/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,6 @@ py_tflm_signal_library(
],
)

TARGET_COMPATIBLE_WITH = select({
"@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"],
"//conditions:default": [],
})

py_test(
name = "delay_op_test",
size = "small",
Expand All @@ -76,7 +71,6 @@ py_test(
"nomsan",
"noubsan",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":delay_op",
requirement("numpy"),
Expand Down Expand Up @@ -108,7 +102,6 @@ py_test(
"nomsan",
"noubsan",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":energy_op",
requirement("numpy"),
Expand Down Expand Up @@ -140,7 +133,6 @@ py_test(
"nomsan",
"noubsan",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":fft_ops",
requirement("numpy"),
Expand Down Expand Up @@ -178,7 +170,6 @@ py_test(
"nomsan",
"noubsan",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":filter_bank_ops",
requirement("numpy"),
Expand Down Expand Up @@ -210,7 +201,6 @@ py_test(
"nomsan",
"noubsan",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":framer_op",
requirement("numpy"),
Expand Down Expand Up @@ -239,7 +229,6 @@ py_test(
"nomsan",
"noubsan",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":overlap_add_op",
requirement("absl_py"),
Expand Down Expand Up @@ -272,7 +261,6 @@ py_test(
"nomsan",
"noubsan",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":pcan_op",
requirement("numpy"),
Expand Down Expand Up @@ -304,7 +292,6 @@ py_test(
"nomsan",
"noubsan",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":stacker_op",
requirement("numpy"),
Expand Down Expand Up @@ -335,7 +322,6 @@ py_test(
"nomsan",
"noubsan",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":window_op",
requirement("numpy"),
Expand Down
7 changes: 0 additions & 7 deletions python/tflite_micro/signal/utils/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,6 @@ package(
licenses = ["notice"],
)

TARGET_COMPATIBLE_WITH = select({
"@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"],
"//conditions:default": [],
})

py_test(
name = "freq_to_mel_test",
srcs = ["freq_to_mel_test.py"],
Expand All @@ -27,7 +22,6 @@ py_test(
"nomsan",
"noubsan",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
)

py_library(
Expand Down Expand Up @@ -79,6 +73,5 @@ py_test(
"nomsan",
"noubsan",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
visibility = ["//visibility:public"],
)
17 changes: 0 additions & 17 deletions signal/micro/kernels/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,11 @@ cc_library(
],
)

TARGET_COMPATIBLE_WITH = select({
"@bazel_tools//src/conditions:windows": ["@platforms//:incompatible"],
"//conditions:default": [],
})

cc_test(
name = "fft_test",
srcs = [
"fft_test.cc",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":fft_flexbuffers_generated_data",
":register_signal_ops",
Expand Down Expand Up @@ -110,7 +104,6 @@ cc_test(
srcs = [
"window_test.cc",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":register_signal_ops",
":window_flexbuffers_generated_data",
Expand All @@ -137,7 +130,6 @@ cc_test(
srcs = [
"framer_test.cc",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":framer_flexbuffers_generated_data",
":register_signal_ops",
Expand All @@ -164,7 +156,6 @@ cc_test(
srcs = [
"overlap_add_test.cc",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":overlap_add_flexbuffers_generated_data",
":register_signal_ops",
Expand All @@ -191,7 +182,6 @@ cc_test(
srcs = [
"delay_test.cc",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":delay_flexbuffers_generated_data",
"//tensorflow/lite/c:common",
Expand All @@ -217,7 +207,6 @@ cc_test(
srcs = [
"stacker_test.cc",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":register_signal_ops",
":stacker_flexbuffers_generated_data",
Expand All @@ -244,7 +233,6 @@ cc_test(
srcs = [
"energy_test.cc",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":energy_flexbuffers_generated_data",
":register_signal_ops",
Expand Down Expand Up @@ -291,7 +279,6 @@ cc_test(
srcs = [
"filter_bank_test.cc",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":filter_bank_flexbuffers_generated_data",
"//tensorflow/lite/c:common",
Expand All @@ -307,7 +294,6 @@ cc_test(
srcs = [
"filter_bank_log_test.cc",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":filter_bank_log_flexbuffers_generated_data",
"//tensorflow/lite/c:common",
Expand All @@ -323,7 +309,6 @@ cc_test(
srcs = [
"filter_bank_spectral_subtraction_test.cc",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":filter_bank_spectral_subtraction_flexbuffers_generated_data",
"//tensorflow/lite/c:common",
Expand All @@ -339,7 +324,6 @@ cc_test(
srcs = [
"filter_bank_square_root_test.cc",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
"//tensorflow/lite/c:common",
"//tensorflow/lite/micro:op_resolvers",
Expand All @@ -364,7 +348,6 @@ cc_test(
srcs = [
"pcan_test.cc",
],
target_compatible_with = TARGET_COMPATIBLE_WITH,
deps = [
":pcan_flexbuffers_generated_data",
"//tensorflow/lite/c:common",
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/lite/micro/tools/ci_build/docker_run_tflm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ shift
echo "${TFLM_BOT_TOKEN}" | docker login ghcr.io -u tflm-bot --password-stdin

# Note: DOCKER_RUN_ENV is used without quotes to allow multiple flags.
docker run ${DOCKER_RUN_ENV:-} --rm -v "$(pwd)":/opt/tflite-micro "${IMAGE}" \
docker run ${DOCKER_RUN_ENV:-} --init --rm -v "$(pwd)":/opt/tflite-micro "${IMAGE}" \
/bin/bash -c "cd /opt && tflite-micro/$*"
Loading