aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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
{