From 7bbf56598010041ea46c3fa9d32604db777ee26e Mon Sep 17 00:00:00 2001 From: Adam Jalkemo Date: Tue, 18 Oct 2022 16:56:09 +0200 Subject: ExecuteNetwork: Fix output format issue for int8 when using -w Change-Id: I594ded82493e9cc48cafa6f00d63769fefba5afe --- tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(outputTensorFile, " ")); + for (std::size_t i = 0; i < numElements; ++i) + { + outputTensorFile << +array[i] << " "; + } } else { -- cgit v1.2.1