aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/test/GraphTests.cpp
diff options
context:
space:
mode:
authorMatthew Sloyan <matthew.sloyan@arm.com>2020-09-14 11:47:26 +0100
committerJan Eilers <jan.eilers@arm.com>2020-09-17 09:41:12 +0000
commit0663d66c64d8f1cb2b6158f9018c9ba19e2c504b (patch)
treeab8370395d7009f109e15463dbcf644191c1d639 /src/armnn/test/GraphTests.cpp
parent171214c8ff275c90cd4f7fc23a34ec2c83b5ea39 (diff)
downloadarmnn-0663d66c64d8f1cb2b6158f9018c9ba19e2c504b.tar.gz
IVGCVSW-5303 Remove some boost::numeric_cast from rest of ArmNN
* Replaced with armnn/utility/NumericCast.hpp * Exclusions in TypeUtils.cpp and QuantizerVisitor.cpp * Excluded as requires float implementation in NumericCast.hpp Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com> Change-Id: I5c4c60e7028e1a51bf9379457278d253fd37bc70
Diffstat (limited to 'src/armnn/test/GraphTests.cpp')
-rw-r--r--src/armnn/test/GraphTests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/armnn/test/GraphTests.cpp b/src/armnn/test/GraphTests.cpp
index 5a17c1c227..55a01fcc94 100644
--- a/src/armnn/test/GraphTests.cpp
+++ b/src/armnn/test/GraphTests.cpp
@@ -9,6 +9,7 @@
#include <armnn/TypesUtils.hpp>
#include <armnn/Exceptions.hpp>
+#include <armnn/utility/NumericCast.hpp>
#include <armnn/utility/PolymorphicDowncast.hpp>
#include <armnn/backends/IBackendInternal.hpp>
@@ -16,7 +17,6 @@
#include <backendsCommon/CpuTensorHandle.hpp>
#include <backendsCommon/TensorHandleFactoryRegistry.hpp>
-#include <boost/cast.hpp>
#include <boost/test/unit_test.hpp>
BOOST_AUTO_TEST_SUITE(Graph)
@@ -299,7 +299,7 @@ static void TestGraphAfterAddingCopyLayers(const armnn::Graph& graph, const armn
if (origEdge.first->GetNameStr() == edge.first->GetNameStr() &&
origEdge.second->GetNameStr() == edge.second->GetNameStr())
{
- originalEdge = boost::numeric_cast<int>(i);
+ originalEdge = armnn::numeric_cast<int>(i);
}
}