aboutsummaryrefslogtreecommitdiff
path: root/src/armnnUtils
diff options
context:
space:
mode:
authorMatteo Martincigh <matteo.martincigh@arm.com>2019-10-28 10:48:05 +0000
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-10-28 14:30:16 +0000
commitd6f26fc022defe1f6220bb6e2874fefc9a4c0cba (patch)
tree86a32e208eee33ae34bab977b7ad7d4964c181ee /src/armnnUtils
parent49e7d1b09b47fa40237c4696f6c590cbebf19a7e (diff)
downloadarmnn-d6f26fc022defe1f6220bb6e2874fefc9a4c0cba.tar.gz
Fix ExecuteNetwork no longer printing out the inference results,
breaking some of the nightly builds * The TensorPrinter must be called regardless of the value of the output tensor files, it will automatically handle an empty file path by only printing the results to the console * Code refactoring Signed-off-by: Matteo Martincigh <matteo.martincigh@arm.com> Change-Id: I548ec7cf6d51badf78643c9a6c1c56ea9200142b
Diffstat (limited to 'src/armnnUtils')
-rw-r--r--src/armnnUtils/TensorIOUtils.hpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/armnnUtils/TensorIOUtils.hpp b/src/armnnUtils/TensorIOUtils.hpp
index 47e0a320b8..07f3723279 100644
--- a/src/armnnUtils/TensorIOUtils.hpp
+++ b/src/armnnUtils/TensorIOUtils.hpp
@@ -37,11 +37,10 @@ inline armnn::InputTensors MakeInputTensors(
{
if (value.size() != inputBinding.second.GetNumElements())
{
- std::ostringstream msg;
- msg << "Input tensor has incorrect size (expected "
- << inputBinding.second.GetNumElements() << " got "
- << value.size();
- throw armnn::Exception(msg.str());
+ throw armnn::Exception(boost::str(boost::format("Input tensor has incorrect size "
+ "(expected %1% got %2%)")
+ % inputBinding.second.GetNumElements()
+ % value.size()));
}
armnn::ConstTensor inputTensor(inputBinding.second, value.data());