From 9a1e28b4df4f5b49bb497c8463a8bc7cedaaf110 Mon Sep 17 00:00:00 2001 From: Gian Marco Iodice Date: Thu, 29 Jul 2021 16:24:36 +0100 Subject: Compilation issue: neon=1 armv8.2 on Android with NDKr18beta1 - The issue was related to the __fp16 specialization on the depthwise convolution layer (cpu) Resolves COMPMID-4741 Change-Id: I6072230c60df6659951db2a1adf611eca6ab7efe Signed-off-by: Gian Marco Iodice Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6026 Comments-Addressed: Arm Jenkins Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas --- .../depthwise/depthwise_depthfirst_generic_multiplier.hpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/core/NEON/kernels/arm_conv/depthwise/depthwise_depthfirst_generic_multiplier.hpp') diff --git a/src/core/NEON/kernels/arm_conv/depthwise/depthwise_depthfirst_generic_multiplier.hpp b/src/core/NEON/kernels/arm_conv/depthwise/depthwise_depthfirst_generic_multiplier.hpp index 31e5834366..bb580e605a 100644 --- a/src/core/NEON/kernels/arm_conv/depthwise/depthwise_depthfirst_generic_multiplier.hpp +++ b/src/core/NEON/kernels/arm_conv/depthwise/depthwise_depthfirst_generic_multiplier.hpp @@ -426,16 +426,7 @@ class DepthwiseDepthfirstGenericWithMultiplier : public DepthwiseDepthfirstGener // Compute activation values TAccum activation_min, activation_max; - if (std::numeric_limits::is_integer) - { - activation_min = std::numeric_limits::min(); - activation_max = std::numeric_limits::max(); - } - else - { - activation_min = static_cast(-std::numeric_limits::infinity()); - activation_max = static_cast(std::numeric_limits::infinity()); - } + std::tie(activation_min, activation_max) = get_default_activation_values(); switch (this->m_args.activation.type) { -- cgit v1.2.1