aboutsummaryrefslogtreecommitdiff
path: root/tests/InferenceModel.hpp
diff options
context:
space:
mode:
authorFinn Williams <finn.williams@arm.com>2022-06-20 13:48:20 +0100
committerNikhil Raj <nikhil.raj@arm.com>2022-07-08 15:19:18 +0100
commit452c58080e9f8f577de87e0c07d0097aac97f3b8 (patch)
tree0a3bd2cc754cde1b3133a914597d607c52ce75ff /tests/InferenceModel.hpp
parentc7b6de86431e26766b60a69bcfcde985af61a028 (diff)
downloadarmnn-452c58080e9f8f577de87e0c07d0097aac97f3b8.tar.gz
IVGCVSW-6650 Refactor ExecuteNetwork
* Remove InferenceModel * Add automatic IO type, shape and name configuration * Depreciate various redundant options * Add internal output comparison Signed-off-by: Finn Williams <finn.williams@arm.com> Change-Id: I2eca248bc91e1655a99ed94990efb8059f541fa9
Diffstat (limited to 'tests/InferenceModel.hpp')
-rw-r--r--tests/InferenceModel.hpp37
1 files changed, 2 insertions, 35 deletions
diff --git a/tests/InferenceModel.hpp b/tests/InferenceModel.hpp
index 93716e1a6f..268f60301c 100644
--- a/tests/InferenceModel.hpp
+++ b/tests/InferenceModel.hpp
@@ -1,5 +1,5 @@
//
-// Copyright © 2017 Arm Ltd and Contributors. All rights reserved.
+// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
@@ -15,6 +15,7 @@
#include <armnn/utility/NumericCast.hpp>
#include <armnnUtils/TContainer.hpp>
+#include "NetworkExecutionUtils/NetworkExecutionUtils.hpp"
#include <common/include/ProfilingGuid.hpp>
@@ -46,40 +47,6 @@
#include <vector>
#include <type_traits>
-namespace
-{
-
-inline bool CheckRequestedBackendsAreValid(const std::vector<armnn::BackendId>& backendIds,
- armnn::Optional<std::string&> invalidBackendIds = armnn::EmptyOptional())
-{
- if (backendIds.empty())
- {
- return false;
- }
-
- armnn::BackendIdSet validBackendIds = armnn::BackendRegistryInstance().GetBackendIds();
-
- bool allValid = true;
- for (const auto& backendId : backendIds)
- {
- if (std::find(validBackendIds.begin(), validBackendIds.end(), backendId) == validBackendIds.end())
- {
- allValid = false;
- if (invalidBackendIds)
- {
- if (!invalidBackendIds.value().empty())
- {
- invalidBackendIds.value() += ", ";
- }
- invalidBackendIds.value() += backendId;
- }
- }
- }
- return allValid;
-}
-
-} // anonymous namespace
-
namespace InferenceModelInternal
{
using BindingPointInfo = armnn::BindingPointInfo;