aboutsummaryrefslogtreecommitdiff
path: root/src/backends/reference/workloads/Mean.cpp
diff options
context:
space:
mode:
authorMatthew Sloyan <matthew.sloyan@arm.com>2020-09-23 16:57:23 +0100
committerColm Donelan <colm.donelan@arm.com>2020-10-02 15:05:08 +0000
commit24ac85943b609e48fc36d16570ca4b5b90d31a6a (patch)
tree6a279be5b2be2084ddff3ec989a957e17ecad26b /src/backends/reference/workloads/Mean.cpp
parent0c8cb872344d3ca4217881d6c70e826ae1776cdb (diff)
downloadarmnn-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/Mean.cpp')
-rw-r--r--src/backends/reference/workloads/Mean.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/backends/reference/workloads/Mean.cpp b/src/backends/reference/workloads/Mean.cpp
index e43a4d5312..fe34efe0c7 100644
--- a/src/backends/reference/workloads/Mean.cpp
+++ b/src/backends/reference/workloads/Mean.cpp
@@ -8,8 +8,6 @@
#include <armnn/utility/NumericCast.hpp>
-#include <boost/numeric/conversion/cast.hpp>
-
#include <cmath>
#include <cstddef>
#include <functional>
@@ -130,15 +128,15 @@ void Mean(const armnn::TensorInfo& inputInfo,
for (unsigned int idx = 0; idx < numResolvedAxis; ++idx)
{
unsigned int current = inputDims[resolvedAxis[idx]];
- ARMNN_ASSERT(boost::numeric_cast<float>(current) <
- (std::numeric_limits<float>::max() / boost::numeric_cast<float>(numElementsInAxis)));
+ ARMNN_ASSERT(armnn::numeric_cast<float>(current) <
+ (std::numeric_limits<float>::max() / armnn::numeric_cast<float>(numElementsInAxis)));
numElementsInAxis *= current;
}
if (numElementsInAxis > 0) {
for (unsigned int idx = 0; idx < numOutputs; ++idx)
{
output[idx];
- output.Set(tempSum[idx] / boost::numeric_cast<float>(numElementsInAxis));
+ output.Set(tempSum[idx] / armnn::numeric_cast<float>(numElementsInAxis));
}
}
}