diff options
author | Finn Williams <finn.williams@arm.com> | 2022-06-20 13:48:20 +0100 |
---|---|---|
committer | Nikhil Raj <nikhil.raj@arm.com> | 2022-07-08 15:19:18 +0100 |
commit | 452c58080e9f8f577de87e0c07d0097aac97f3b8 (patch) | |
tree | 0a3bd2cc754cde1b3133a914597d607c52ce75ff /tests/ExecuteNetwork/IExecutor.hpp | |
parent | c7b6de86431e26766b60a69bcfcde985af61a028 (diff) | |
download | armnn-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/ExecuteNetwork/IExecutor.hpp')
-rw-r--r-- | tests/ExecuteNetwork/IExecutor.hpp | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/ExecuteNetwork/IExecutor.hpp b/tests/ExecuteNetwork/IExecutor.hpp new file mode 100644 index 0000000000..4ed6cbde84 --- /dev/null +++ b/tests/ExecuteNetwork/IExecutor.hpp @@ -0,0 +1,22 @@ +// +// Copyright © 2022 Arm Ltd and Contributors. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once +#include <vector> + +/// IExecutor executes a network +class IExecutor +{ +public: + /// Execute the given network + /// @return std::vector<const void*> A type erased vector of the outputs, + /// that can be compared with the output of another IExecutor + virtual std::vector<const void*> Execute() = 0; + /// Print available information about the network + virtual void PrintNetworkInfo() = 0; + /// Compare the output with the result of another IExecutor + virtual void CompareAndPrintResult(std::vector<const void*> otherOutput) = 0; + virtual ~IExecutor(){}; +}; |