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/Layer.hpp | |
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/Layer.hpp')
-rw-r--r-- | src/armnn/Layer.hpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/armnn/Layer.hpp b/src/armnn/Layer.hpp index d4a24e4925..fff57732aa 100644 --- a/src/armnn/Layer.hpp +++ b/src/armnn/Layer.hpp @@ -18,6 +18,7 @@ #include <armnn/Tensor.hpp> #include <armnn/INetwork.hpp> #include <armnn/utility/IgnoreUnused.hpp> +#include <armnn/utility/NumericCast.hpp> #include <armnn/utility/PolymorphicDowncast.hpp> #include <algorithm> @@ -28,8 +29,6 @@ #include <string> #include <vector> -#include <boost/cast.hpp> - namespace armnn { @@ -135,7 +134,7 @@ public: // IOutputSlot - unsigned int GetNumConnections() const override { return boost::numeric_cast<unsigned int>(m_Connections.size()); } + unsigned int GetNumConnections() const override { return armnn::numeric_cast<unsigned int>(m_Connections.size()); } const InputSlot* GetConnection(unsigned int index) const override; InputSlot* GetConnection(unsigned int index) override; |