diff options
author | Colm Donelan <Colm.Donelan@arm.com> | 2020-09-09 12:48:16 +0100 |
---|---|---|
committer | TeresaARM <teresa.charlinreyes@arm.com> | 2020-10-02 15:30:11 +0000 |
commit | 5b5c222f6b0c40a8e0f9ef9dedccd6f0f18c4c2c (patch) | |
tree | 6ad0552e5efeb7ae3474a7f5019bc2fb33fced03 /src/armnnConverter/ArmnnConverter.cpp | |
parent | 24ac85943b609e48fc36d16570ca4b5b90d31a6a (diff) | |
download | armnn-5b5c222f6b0c40a8e0f9ef9dedccd6f0f18c4c2c.tar.gz |
IVGCVSW-5297 Remove boost::format from rest of ArmNN.
* Replacing calls to boost:format with fmt:format.
* TensorUtils.cpp added outputShape.reserve call.
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: I4b2ed0f72039df824a2adca9309b8a9bbb158c5b
Diffstat (limited to 'src/armnnConverter/ArmnnConverter.cpp')
-rw-r--r-- | src/armnnConverter/ArmnnConverter.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/armnnConverter/ArmnnConverter.cpp b/src/armnnConverter/ArmnnConverter.cpp index 21b89ea6f8..c8b9ba9f28 100644 --- a/src/armnnConverter/ArmnnConverter.cpp +++ b/src/armnnConverter/ArmnnConverter.cpp @@ -24,7 +24,7 @@ #include <armnn/utility/NumericCast.hpp> #include "armnn/utility/StringUtils.hpp" -#include <boost/format.hpp> +#include <fmt/format.h> #include <boost/program_options.hpp> #include <cstdlib> @@ -265,9 +265,9 @@ private: const size_t numInputBindings = m_InputNames.size(); if (numInputShapes < numInputBindings) { - throw armnn::Exception(boost::str(boost::format( - "Not every input has its tensor shape specified: expected=%1%, got=%2%") - % numInputBindings % numInputShapes)); + throw armnn::Exception(fmt::format( + "Not every input has its tensor shape specified: expected={0}, got={1}", + numInputBindings, numInputShapes)); } for (size_t i = 0; i < numInputShapes; i++) @@ -298,9 +298,9 @@ private: const size_t numInputBindings = m_InputNames.size(); if (numInputShapes < numInputBindings) { - throw armnn::Exception(boost::str(boost::format( - "Not every input has its tensor shape specified: expected=%1%, got=%2%") - % numInputBindings % numInputShapes)); + throw armnn::Exception(fmt::format( + "Not every input has its tensor shape specified: expected={0}, got={1}", + numInputBindings, numInputShapes)); } } @@ -325,9 +325,9 @@ private: const size_t numInputBindings = m_InputNames.size(); if (numInputShapes < numInputBindings) { - throw armnn::Exception(boost::str(boost::format( - "Not every input has its tensor shape specified: expected=%1%, got=%2%") - % numInputBindings % numInputShapes)); + throw armnn::Exception(fmt::format( + "Not every input has its tensor shape specified: expected={0}, got={1}", + numInputBindings, numInputShapes)); } } |