diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2020-09-14 11:47:26 +0100 |
---|---|---|
committer | Jan Eilers <jan.eilers@arm.com> | 2020-09-17 09:41:12 +0000 |
commit | 0663d66c64d8f1cb2b6158f9018c9ba19e2c504b (patch) | |
tree | ab8370395d7009f109e15463dbcf644191c1d639 /src/armnn/layers/SliceLayer.cpp | |
parent | 171214c8ff275c90cd4f7fc23a34ec2c83b5ea39 (diff) | |
download | armnn-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/layers/SliceLayer.cpp')
-rw-r--r-- | src/armnn/layers/SliceLayer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/armnn/layers/SliceLayer.cpp b/src/armnn/layers/SliceLayer.cpp index 0f1d4386d7..bfa16e5f9e 100644 --- a/src/armnn/layers/SliceLayer.cpp +++ b/src/armnn/layers/SliceLayer.cpp @@ -8,12 +8,11 @@ #include "LayerCloneBase.hpp" #include <armnn/TypesUtils.hpp> +#include <armnn/utility/NumericCast.hpp> #include <backendsCommon/WorkloadData.hpp> #include <backendsCommon/WorkloadFactory.hpp> -#include <boost/numeric/conversion/cast.hpp> - namespace armnn { @@ -53,7 +52,7 @@ std::vector<TensorShape> SliceLayer::InferOutputShapes(const std::vector<TensorS IgnoreUnused(inputShapes); ARMNN_ASSERT(inputShapes.size() == 1); - TensorShape outputShape(boost::numeric_cast<unsigned int>(m_Param.m_Size.size()), m_Param.m_Size.data()); + TensorShape outputShape(armnn::numeric_cast<unsigned int>(m_Param.m_Size.size()), m_Param.m_Size.data()); return std::vector<TensorShape>({ outputShape }); } |