aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jalkemo <adam.jalkemo@arm.com>2022-10-18 16:56:09 +0200
committerTeresaARM <teresa.charlinreyes@arm.com>2022-10-18 16:17:21 +0000
commit7bbf56598010041ea46c3fa9d32604db777ee26e (patch)
tree3c4e023e87d797e3129c051cb4f4fb1a908c654c
parentfcc72f53c56683fe697ac23662c49af09048a428 (diff)
downloadarmnn-7bbf56598010041ea46c3fa9d32604db777ee26e.tar.gz
ExecuteNetwork: Fix output format issue for int8 when using -w
Change-Id: I594ded82493e9cc48cafa6f00d63769fefba5afe
-rw-r--r--tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp b/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp
index 14d7fe5551..acdef0f5d7 100644
--- a/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp
+++ b/tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp
@@ -175,7 +175,10 @@ void WriteToFile(const std::string& outputTensorFileName,
if (outputTensorFile.is_open())
{
outputTensorFile << outputName << ": ";
- std::copy(array, array + numElements, std::ostream_iterator<T>(outputTensorFile, " "));
+ for (std::size_t i = 0; i < numElements; ++i)
+ {
+ outputTensorFile << +array[i] << " ";
+ }
}
else
{