From 6dd504ee317e8b8da76927a49bd1e05b29d09eb5 Mon Sep 17 00:00:00 2001 From: Tom Allsop Date: Mon, 9 Mar 2026 17:10:23 +0000 Subject: [PATCH 1/2] Arm backend: Pin pybind11 version when installing tosa_serialization * To account for potential edge cases of pybind11 drifting * Will be removed when tosa-tools is installed from pypi Signed-off-by: Tom Allsop Change-Id: I197d3c141bd8918a8debaba55adcdc9fb296ba17 --- .ci/scripts/unittest-linux-cmake.sh | 1 + backends/arm/requirements-arm-tosa.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/.ci/scripts/unittest-linux-cmake.sh b/.ci/scripts/unittest-linux-cmake.sh index 0b3653e9b71..b7c9dba221a 100755 --- a/.ci/scripts/unittest-linux-cmake.sh +++ b/.ci/scripts/unittest-linux-cmake.sh @@ -19,6 +19,7 @@ if ! python -c "import tosa_serializer" >/dev/null 2>&1; then TOSA_SERIALIZATION_DIR="${TOSA_TOOLS_DIR}/serialization" fi + python -m pip install pybind11==2.10.4 CMAKE_POLICY_VERSION_MINIMUM=3.5 BUILD_PYBIND=1 \ python -m pip install --no-dependencies \ "${TOSA_SERIALIZATION_DIR}" diff --git a/backends/arm/requirements-arm-tosa.txt b/backends/arm/requirements-arm-tosa.txt index adf32261568..c3652261690 100644 --- a/backends/arm/requirements-arm-tosa.txt +++ b/backends/arm/requirements-arm-tosa.txt @@ -7,3 +7,4 @@ ml_dtypes == 0.5.1 flatbuffers == 24.3.25 tosa-adapter-model-explorer == 0.1.0 ai-edge-model-explorer >= 0.1.16 +pybind11 == 2.10.4 From 7c4a77990addf0306faab1b60dca7247af852657 Mon Sep 17 00:00:00 2001 From: Tom Allsop Date: Tue, 10 Mar 2026 14:18:20 +0000 Subject: [PATCH 2/2] Add note informing pin will be removed Change-Id: I8385d18b84eadb1cc59218edfe2cce72765d12a9 --- .ci/scripts/unittest-linux-cmake.sh | 1 + backends/arm/requirements-arm-tosa.txt | 1 + 2 files changed, 2 insertions(+) diff --git a/.ci/scripts/unittest-linux-cmake.sh b/.ci/scripts/unittest-linux-cmake.sh index b7c9dba221a..d7943eae121 100755 --- a/.ci/scripts/unittest-linux-cmake.sh +++ b/.ci/scripts/unittest-linux-cmake.sh @@ -19,6 +19,7 @@ if ! python -c "import tosa_serializer" >/dev/null 2>&1; then TOSA_SERIALIZATION_DIR="${TOSA_TOOLS_DIR}/serialization" fi + # NOTE: Will be removed when tosa-tools is installed via pypi python -m pip install pybind11==2.10.4 CMAKE_POLICY_VERSION_MINIMUM=3.5 BUILD_PYBIND=1 \ python -m pip install --no-dependencies \ diff --git a/backends/arm/requirements-arm-tosa.txt b/backends/arm/requirements-arm-tosa.txt index c3652261690..7588fd44efa 100644 --- a/backends/arm/requirements-arm-tosa.txt +++ b/backends/arm/requirements-arm-tosa.txt @@ -7,4 +7,5 @@ ml_dtypes == 0.5.1 flatbuffers == 24.3.25 tosa-adapter-model-explorer == 0.1.0 ai-edge-model-explorer >= 0.1.16 +# NOTE: Will be removed when tosa-tools is installed via pypi pybind11 == 2.10.4