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/armnnConverter/ArmnnConverter.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/armnnConverter/ArmnnConverter.cpp')
-rw-r--r-- | src/armnnConverter/ArmnnConverter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/armnnConverter/ArmnnConverter.cpp b/src/armnnConverter/ArmnnConverter.cpp index f143e6989b..21b89ea6f8 100644 --- a/src/armnnConverter/ArmnnConverter.cpp +++ b/src/armnnConverter/ArmnnConverter.cpp @@ -21,6 +21,7 @@ #endif #include <HeapProfiling.hpp> +#include <armnn/utility/NumericCast.hpp> #include "armnn/utility/StringUtils.hpp" #include <boost/format.hpp> @@ -49,7 +50,7 @@ armnn::TensorShape ParseTensorShape(std::istream& stream) { try { - result.push_back(boost::numeric_cast<unsigned int>(std::stoi((token)))); + result.push_back(armnn::numeric_cast<unsigned int>(std::stoi((token)))); } catch (const std::exception&) { @@ -59,7 +60,7 @@ armnn::TensorShape ParseTensorShape(std::istream& stream) } } - return armnn::TensorShape(boost::numeric_cast<unsigned int>(result.size()), result.data()); + return armnn::TensorShape(armnn::numeric_cast<unsigned int>(result.size()), result.data()); } bool CheckOption(const po::variables_map& vm, |