aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin May <kevin.may@arm.com>2024-03-14 10:29:28 +0000
committerKevin May <kevin.may@arm.com>2024-03-14 10:29:28 +0000
commitddac0904038d8f2ac06187865e830154da74a9e2 (patch)
tree68faaec62c6e48ea1f85ef440717b485c2f72d99
parent80ef511c23338c03460e6890240786dd40d06c59 (diff)
downloadarmnn-ddac0904038d8f2ac06187865e830154da74a9e2.tar.gz
Syntax change to allow building on older compilers
Signed-off-by: Kevin May <kevin.may@arm.com> Change-Id: I7148c25679a8a919c6138df6b23d0129e8ddd0a5
-rw-r--r--src/armnn/layers/MeanLayer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/armnn/layers/MeanLayer.cpp b/src/armnn/layers/MeanLayer.cpp
index 62a3923750..8e6d9e00af 100644
--- a/src/armnn/layers/MeanLayer.cpp
+++ b/src/armnn/layers/MeanLayer.cpp
@@ -77,7 +77,8 @@ std::vector<TensorShape> MeanLayer::InferOutputShapes(const std::vector<TensorSh
const TensorShape& input = inputShapes[0];
- if (auto inputDims = input.GetNumDimensions(); inputDims != std::clamp(inputDims, 1u, 4u))
+ auto inputDims = input.GetNumDimensions();
+ if (inputDims != std::clamp(inputDims, 1u, 4u))
{
throw armnn::Exception("ReduceLayer: Reduce supports up to 4D input.");
}