2023-08-16 22:26:55 +00:00
|
|
|
Index: third_party/tflite/features.gni
|
|
|
|
--- third_party/tflite/features.gni.orig
|
|
|
|
+++ third_party/tflite/features.gni
|
2024-05-20 13:42:05 +00:00
|
|
|
@@ -8,9 +8,9 @@ declare_args() {
|
2023-08-16 22:26:55 +00:00
|
|
|
# This enables building TFLite with XNNPACK. Currently only available for
|
2024-05-20 13:42:05 +00:00
|
|
|
# Linux or macOS arm64/x64 and Windows x64 targets.
|
|
|
|
build_tflite_with_xnnpack =
|
|
|
|
- ((is_linux || is_mac) &&
|
|
|
|
+ (((is_linux || is_mac) &&
|
|
|
|
(current_cpu == "arm64" || current_cpu == "x64")) ||
|
|
|
|
- (is_win && current_cpu == "x64")
|
|
|
|
+ (is_win && current_cpu == "x64")) && !is_bsd
|
2023-08-16 22:26:55 +00:00
|
|
|
|
|
|
|
# Turns on TFLITE_WITH_RUY, using ruy as the gemm backend instead of gemmlowp.
|
|
|
|
build_tflite_with_ruy = true
|