diff options
Diffstat (limited to 'src/armnnUtils')
-rw-r--r-- | src/armnnUtils/TensorIOUtils.hpp | 9 |
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()); |