aboutsummaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
Diffstat (limited to 'samples')
-rw-r--r--samples/AsyncExecutionSample.cpp2
-rw-r--r--samples/ImageClassification/requirements.txt4
-rw-r--r--samples/PreImportMemorySample.cpp6
3 files changed, 10 insertions, 2 deletions
diff --git a/samples/AsyncExecutionSample.cpp b/samples/AsyncExecutionSample.cpp
index a789aade01..4647c3af75 100644
--- a/samples/AsyncExecutionSample.cpp
+++ b/samples/AsyncExecutionSample.cpp
@@ -120,8 +120,10 @@ int main()
// Lambda function to execute the network. We use it as thread function.
auto execute = [&](unsigned int executionIndex)
{
+ARMNN_NO_DEPRECATE_WARN_BEGIN
auto memHandle = run->CreateWorkingMemHandle(networkIdentifier);
run->Execute(*memHandle, inputTensors[executionIndex], outputTensors[executionIndex]);
+ARMNN_NO_DEPRECATE_WARN_END
};
// Prepare some threads and let each execute the network with a different input
diff --git a/samples/ImageClassification/requirements.txt b/samples/ImageClassification/requirements.txt
index f6c35b6bc0..66dcfb8d56 100644
--- a/samples/ImageClassification/requirements.txt
+++ b/samples/ImageClassification/requirements.txt
@@ -1,7 +1,7 @@
#
-# Copyright © 2021-2022 Arm Ltd and Contributors. All rights reserved.
+# Copyright © 2021-2024 Arm Ltd and Contributors. All rights reserved.
# SPDX-License-Identifier: MIT
#
numpy==1.22.0
-Pillow==10.0.1
+Pillow==10.2.0
pybind11==2.6.2
diff --git a/samples/PreImportMemorySample.cpp b/samples/PreImportMemorySample.cpp
index 98f386bfdf..b7263d7d76 100644
--- a/samples/PreImportMemorySample.cpp
+++ b/samples/PreImportMemorySample.cpp
@@ -88,7 +88,9 @@ int main()
// This function performs a thread safe execution of the network. Returns once execution is complete.
// Will block until this and any other thread using the same workingMem object completes.
// Execute with PreImported inputTensor1 as well as Non-PreImported inputTensor2
+ARMNN_NO_DEPRECATE_WARN_BEGIN
runtime->Execute(*memHandle.get(), {}, {{2, outputTensor1}}, importedInputVec /* pre-imported ids */);
+ARMNN_NO_DEPRECATE_WARN_END
// ImportOutputs separates the importing and mapping of OutputTensors from network execution.
// Allowing for a set of OutputTensors to be imported and mapped once, but used in execution many times.
@@ -99,8 +101,10 @@ int main()
// PreImport outputTensor1
std::vector<ImportedOutputId> importedOutputVec = runtime->ImportOutputs(networkIdentifier1, {output1});
+ARMNN_NO_DEPRECATE_WARN_BEGIN
// Execute with Non-PreImported inputTensor1 as well as PreImported inputTensor2
runtime->Execute(*memHandle.get(), {{0, inputTensor1}}, {{2, outputTensor1}}, {1 /* pre-imported id */});
+ARMNN_NO_DEPRECATE_WARN_END
// Clear the previously PreImportedInput with the network Id and inputIds returned from ImportInputs()
// Note: This will happen automatically during destructor of armnn::LoadedNetwork
@@ -110,8 +114,10 @@ int main()
// Note: This will happen automatically during destructor of armnn::LoadedNetwork
runtime->ClearImportedOutputs(networkIdentifier1, importedOutputVec);
+ARMNN_NO_DEPRECATE_WARN_BEGIN
// Execute with Non-PreImported inputTensor1, inputTensor2 and the PreImported outputTensor1
runtime->Execute(*memHandle.get(), {{0, inputTensor1}, {1, inputTensor2}}, {{2, outputTensor1}});
+ARMNN_NO_DEPRECATE_WARN_END
std::cout << "Your number was " << outputData1.data()[0] << std::endl;