diff --git a/examples/arm/ethos-u-setup/core_platform/patches/0010-Executorch-fix-executorch_runner-test.patch b/examples/arm/ethos-u-setup/core_platform/patches/0010-Executorch-fix-executorch_runner-test.patch new file mode 100644 index 00000000000..24f24f84fb1 --- /dev/null +++ b/examples/arm/ethos-u-setup/core_platform/patches/0010-Executorch-fix-executorch_runner-test.patch @@ -0,0 +1,36 @@ +From d320a6d1a4c8a73ec3aacce5257edb8eea2c7cd5 Mon Sep 17 00:00:00 2001 +From: Mergen Nachin +Date: Sun, 11 Feb 2024 15:39:40 -0500 +Subject: [PATCH] Fix applications/executorch_tests/runner: replace deprecated + function + +--- + applications/executorch_tests/runner.cpp | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/applications/executorch_tests/runner.cpp b/applications/executorch_tests/runner.cpp +index 9dc3519..8692a0e 100644 +--- a/applications/executorch_tests/runner.cpp ++++ b/applications/executorch_tests/runner.cpp +@@ -10,6 +10,7 @@ + #include + + #include ++#include + #include + #include + #include +@@ -110,7 +111,10 @@ int main() { + ET_LOG(Info,"Method loaded."); + + ET_LOG(Info,"Preparing inputs..."); +- auto inputs = torch::executor::util::PrepareInputTensors(*method); ++ auto inputs = torch::executor::util::prepare_input_tensors(*method); ++ if (!inputs.ok()) { ++ ET_LOG(Info, "Preparing inputs tensors for method %s failed with status 0x%" PRIx32, method_name, inputs.error()); ++ } + ET_LOG(Info,"Input prepared."); + + ET_LOG(Info,"Starting the model execution..."); +-- +2.31.1