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/armnn/Graph.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/armnn/Graph.cpp')
-rw-r--r-- | src/armnn/Graph.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/armnn/Graph.cpp b/src/armnn/Graph.cpp index a497a45da9..30546e1f0a 100644 --- a/src/armnn/Graph.cpp +++ b/src/armnn/Graph.cpp @@ -16,7 +16,7 @@ #include <armnn/utility/Assert.hpp> #include <armnn/utility/NumericCast.hpp> -#include <boost/format.hpp> +#include <fmt/format.h> #include <unordered_map> #include <DotSerializer.hpp> @@ -312,12 +312,11 @@ void Graph::AddCompatibilityLayers(std::map<BackendId, std::unique_ptr<IBackendI // A copy layer is needed in between the source and destination layers. // Record the operation rather than attempting to modify the graph as we go. // (invalidating iterators) - const std::string compLayerName = boost::str(boost::format("[ %1% (%2%) -> %3% (%4%) ]") - % srcLayer->GetName() - % srcOutputIndex - % dstLayer.GetName() - % dstInputSlot->GetSlotIndex()); - + const std::string compLayerName = fmt::format("[ {} ({}) -> {} ({}) ]", + srcLayer->GetName(), + srcOutputIndex, + dstLayer.GetName(), + dstInputSlot->GetSlotIndex()); Layer* compLayer = nullptr; if (strategy == EdgeStrategy::CopyToTarget) { |