diff options
author | Matthew Sloyan <matthew.sloyan@arm.com> | 2020-09-23 16:57:23 +0100 |
---|---|---|
committer | Colm Donelan <colm.donelan@arm.com> | 2020-10-02 15:05:08 +0000 |
commit | 24ac85943b609e48fc36d16570ca4b5b90d31a6a (patch) | |
tree | 6a279be5b2be2084ddff3ec989a957e17ecad26b /src/backends/reference/workloads/Pooling2d.cpp | |
parent | 0c8cb872344d3ca4217881d6c70e826ae1776cdb (diff) | |
download | armnn-24ac85943b609e48fc36d16570ca4b5b90d31a6a.tar.gz |
IVGCVSW-5334 Remove remaining boost::numeric_cast from armnn
* Floating point casts now use armnn::numeric_cast.
* Also removed remaining header imports.
Signed-off-by: Matthew Sloyan <matthew.sloyan@arm.com>
Change-Id: I2d37847d67f164fc0a0ae17f34d49ff3d2210c30
Diffstat (limited to 'src/backends/reference/workloads/Pooling2d.cpp')
-rw-r--r-- | src/backends/reference/workloads/Pooling2d.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/backends/reference/workloads/Pooling2d.cpp b/src/backends/reference/workloads/Pooling2d.cpp index be6ff387f3..c5633e8eba 100644 --- a/src/backends/reference/workloads/Pooling2d.cpp +++ b/src/backends/reference/workloads/Pooling2d.cpp @@ -11,8 +11,6 @@ #include <armnnUtils/DataLayoutIndexed.hpp> #include <armnn/utility/NumericCast.hpp> -#include <boost/numeric/conversion/cast.hpp> - #include <limits> #include <algorithm> #include <functional> @@ -208,7 +206,7 @@ void Pooling2d(Decoder<float>& rInputDecoder, wend = std::min(wend, widthInput + padRight); float result = defaultInitializer; - float poolAreaSize = boost::numeric_cast<float>(height * (wend - wstart)); + float poolAreaSize = armnn::numeric_cast<float>(height * (wend - wstart)); // Special case: when the pooling kernel is over a padding region and the padding // size is larger or equal to the kernel and the kernel only covers @@ -248,7 +246,7 @@ void Pooling2d(Decoder<float>& rInputDecoder, { // When we exclude the padding, it means we calculate with a smaller // kernel size, so I changed the divisor here. - poolAreaSize = boost::numeric_cast<float>((hend - hstart) * (wend - wstart)); + poolAreaSize = armnn::numeric_cast<float>((hend - hstart) * (wend - wstart)); } for (auto yInput = hstart; yInput < hend; yInput++) |