aboutsummaryrefslogtreecommitdiff
path: root/tests/NetworkExecutionUtils/NetworkExecutionUtils.cpp
diff options
context:
space:
mode:
authorFinn Williams <Finn.Williams@arm.com>2020-11-20 13:57:53 +0000
committerFrancis Murtagh <francis.murtagh@arm.com>2020-11-20 17:42:30 +0000
commit4f55a25217f679205bd39587a26f2a2d1866cb67 (patch)
tree296a1769d3f83203b990ad8e6377afad6948cc32 /tests/NetworkExecutionUtils/NetworkExecutionUtils.cpp
parent66da7510362d00c6d5b6e8c1fe7f10145efe764b (diff)
downloadarmnn-4f55a25217f679205bd39587a26f2a2d1866cb67.tar.gz
IVGCVSW-5559 Add int8_t to tflite delegate on ExecuteNetwork
Signed-off-by: Finn Williams <Finn.Williams@arm.com> Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I56afc73d48848bc40842692831c05316484757a4
Diffstat (limited to 'tests/NetworkExecutionUtils/NetworkExecutionUtils.cpp')
-rw-r--r--tests/NetworkExecutionUtils/NetworkExecutionUtils.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/NetworkExecutionUtils/NetworkExecutionUtils.cpp b/tests/NetworkExecutionUtils/NetworkExecutionUtils.cpp
index 3e7c87d653..2afd941636 100644
--- a/tests/NetworkExecutionUtils/NetworkExecutionUtils.cpp
+++ b/tests/NetworkExecutionUtils/NetworkExecutionUtils.cpp
@@ -25,36 +25,6 @@
#include "armnnOnnxParser/IOnnxParser.hpp"
#endif
-
-template<typename T, typename TParseElementFunc>
-std::vector<T> ParseArrayImpl(std::istream& stream, TParseElementFunc parseElementFunc, const char* chars = "\t ,:")
-{
- std::vector<T> result;
- // Processes line-by-line.
- std::string line;
- while (std::getline(stream, line))
- {
- std::vector<std::string> tokens = armnn::stringUtils::StringTokenizer(line, chars);
- for (const std::string& token : tokens)
- {
- if (!token.empty()) // See https://stackoverflow.com/questions/10437406/
- {
- try
- {
- result.push_back(parseElementFunc(token));
- }
- catch (const std::exception&)
- {
- ARMNN_LOG(error) << "'" << token << "' is not a valid number. It has been ignored.";
- }
- }
- }
- }
-
- return result;
-}
-
-
template<armnn::DataType NonQuantizedType>
auto ParseDataArray(std::istream& stream);