diff --git a/tur-pypi-312/python3.12-tflite-runtime/0002-include-neon2sse-for-xnnpack.patch b/tur-pypi-312/python3.12-tflite-runtime/0002-include-neon2sse-for-xnnpack.patch deleted file mode 100644 index 46de325..0000000 --- a/tur-pypi-312/python3.12-tflite-runtime/0002-include-neon2sse-for-xnnpack.patch +++ /dev/null @@ -1,22 +0,0 @@ ---- a/tensorflow/lite/CMakeLists.txt -+++ b/tensorflow/lite/CMakeLists.txt -@@ -507,6 +507,11 @@ - if(TFLITE_ENABLE_XNNPACK) - find_package(fp16_headers REQUIRED) - find_package(XNNPACK REQUIRED) -+ set(XNNPACK_NEON_2_SSE "") -+ if (NOT CMAKE_SYSTEM_PROCESSOR OR CMAKE_SYSTEM_PROCESSOR MATCHES "x86") -+ find_package(NEON_2_SSE REQUIRED) -+ list(APPEND XNNPACK_NEON_2_SSE NEON_2_SSE::NEON_2_SSE) -+ endif() - populate_tflite_source_vars("delegates/xnnpack" - TFLITE_DELEGATES_XNNPACK_SRCS - FILTER ".*(_test|_tester)\\.(cc|h)" -@@ -533,6 +538,7 @@ - flatbuffers::flatbuffers - gemmlowp::gemmlowp - ruy::ruy -+ ${XNNPACK_NEON_2_SSE} - ) - - list(APPEND TFLITE_TARGET_PUBLIC_OPTIONS "-DTFLITE_KERNEL_USE_XNNPACK") diff --git a/tur-pypi-312/python3.12-tflite-runtime/build.sh b/tur-pypi-312/python3.12-tflite-runtime/build.sh index 0609851..43d0724 100644 --- a/tur-pypi-312/python3.12-tflite-runtime/build.sh +++ b/tur-pypi-312/python3.12-tflite-runtime/build.sh @@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://www.tensorflow.org/lite TERMUX_PKG_DESCRIPTION="TensorFlow Lite Python bindings" TERMUX_PKG_LICENSE="Apache-2.0" TERMUX_PKG_MAINTAINER="@termux-user-repository" -TERMUX_PKG_VERSION="2.18.0" +TERMUX_PKG_VERSION="2.19.0" TERMUX_PKG_SRCURL=git+https://github.com/tensorflow/tensorflow TERMUX_PKG_AUTO_UPDATE=true TERMUX_PKG_DEPENDS="python, python-numpy, python-pip" @@ -37,7 +37,7 @@ termux_step_pre_configure() { # Copied from tensorflow/lite/tools/pip_package/build_pip_package_with_cmake.sh export TENSORFLOW_DIR="$TERMUX_PKG_SRCDIR" local TENSORFLOW_LITE_DIR="$TENSORFLOW_DIR/tensorflow/lite" - local TENSORFLOW_VERSION=$(grep "_VERSION = " "$TENSORFLOW_DIR/tensorflow/tools/pip_package/setup.py" | cut -d= -f2 | sed "s/[ '-]//g") + local TENSORFLOW_VERSION=$(grep -E '^_VERSION.*$' "$TENSORFLOW_DIR/tensorflow/tools/pip_package/setup.py" | cut -d= -f2 | sed "s/[ '-]//g") export PACKAGE_VERSION="$TENSORFLOW_VERSION" export PROJECT_NAME="tflite_runtime" TFLITE_BUILD_DIR="$TERMUX_PKG_BUILDDIR/build-wheel"