Skip to content

Commit

Permalink
ExecuteNetwork: Fix output format issue for int8 when using -w
Browse files Browse the repository at this point in the history
Change-Id: I594ded82493e9cc48cafa6f00d63769fefba5afe
  • Loading branch information
Adam Jalkemo authored and TeresaARM committed Oct 18, 2022
1 parent fcc72f5 commit 7bbf565
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/NetworkExecutionUtils/NetworkExecutionUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 7bbf565

Please sign in to comment.