Enable applying xnnpack delegate by default in TfLite on all platforms except MacOS and Fuchsia for C++ and Python.
PiperOrigin-RevId: 408492274
Change-Id: I58b8777c364afdcaeddcfc8e6a74cda71e512436
diff --git a/tensorflow/lite/BUILD b/tensorflow/lite/BUILD
index 9257f08..fac7063 100644
--- a/tensorflow/lite/BUILD
+++ b/tensorflow/lite/BUILD
@@ -707,14 +707,9 @@
# configuration conditions will make TFLite interpreter to apply XNNPACK
# delegate by default.
deps = select({
- "//tensorflow:android": [":tflite_with_xnnpack_enabled"],
- # XNNPACK delivers significant benefits w/ WASM and is already in use
- # by most WASM clients.
- "//tensorflow:emscripten": [":tflite_with_xnnpack_enabled"],
- "//tensorflow:ios": [":tflite_with_xnnpack_enabled"],
"//tensorflow:macos": [],
- "//tensorflow:windows": [":tflite_with_xnnpack_enabled"],
- "//conditions:default": [],
+ "//tensorflow:fuchsia": [],
+ "//conditions:default": [":tflite_with_xnnpack_enabled"],
}),
)
diff --git a/tensorflow/tools/pip_package/BUILD b/tensorflow/tools/pip_package/BUILD
index 270c1bc..c3a64b9 100644
--- a/tensorflow/tools/pip_package/BUILD
+++ b/tensorflow/tools/pip_package/BUILD
@@ -182,13 +182,17 @@
"//third_party/eigen3:LICENSE",
"//third_party/fft2d:LICENSE",
"//third_party/icu/data:LICENSE",
- "@ruy//:LICENSE",
+ "@FP16//:LICENSE",
+ "@FXdiv//:LICENSE",
+ "@XNNPACK//:LICENSE",
"@arm_neon_2_x86_sse//:LICENSE",
"@astunparse_archive//:LICENSE",
"@boringssl//:LICENSE",
+ "@clog//:LICENSE",
"@com_google_absl//:LICENSE",
"@com_google_protobuf//:LICENSE",
"@com_googlesource_code_re2//:LICENSE",
+ "@cpuinfo//:LICENSE",
"@curl//:COPYING",
"@dill_archive//:LICENSE",
"@dlpack//:LICENSE",
@@ -213,6 +217,8 @@
"@opt_einsum_archive//:LICENSE",
"@pasta//:LICENSE",
"@png//:LICENSE",
+ "@pthreadpool//:LICENSE",
+ "@ruy//:LICENSE",
"@six_archive//:LICENSE",
"@snappy//:COPYING",
"@sobol_data//:LICENSE",
@@ -220,8 +226,6 @@
"@termcolor_archive//:COPYING.txt",
"@typing_extensions_archive//:LICENSE",
"@zlib//:zlib.h",
- "@clog//:LICENSE",
- "@cpuinfo//:LICENSE",
] + select({
"//tensorflow:android": [],
"//tensorflow:ios": [],