aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2019-04-17 11:04:28 +0100
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-04-17 11:52:17 +0000
commitdcd949d8c71d879ff656c13d068e8af3dd31eef1 (patch)
tree85979e9317cd2fdbc4866f563a8c8eb80a9ebff9
parenta9c4472188abef421adb589e2a6fef52727d465f (diff)
downloadComputeLibrary-dcd949d8c71d879ff656c13d068e8af3dd31eef1.tar.gz
COMPMID-1995: Fix release builds
Forces checks in calculate_concatenate_shape to be performed when asserts are enabled Change-Id: I04e08894f8118a65147e2fdf34cb4d2e75e76273 Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-on: https://review.mlplatform.org/c/1001 Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--arm_compute/core/utils/misc/ShapeCalculator.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arm_compute/core/utils/misc/ShapeCalculator.h b/arm_compute/core/utils/misc/ShapeCalculator.h
index f5058b35fb..26b337d5c5 100644
--- a/arm_compute/core/utils/misc/ShapeCalculator.h
+++ b/arm_compute/core/utils/misc/ShapeCalculator.h
@@ -1204,6 +1204,7 @@ inline TensorShape calculate_concatenate_shape(const std::vector<T *> &input, si
{
TensorShape out_shape = extract_shape(input[0]);
+#if defined(ARM_COMPUTE_ASSERTS_ENABLED)
// All dimensions must match except the axis one
for(unsigned int i = 0; i < MAX_DIMS; ++i)
{
@@ -1219,6 +1220,7 @@ inline TensorShape calculate_concatenate_shape(const std::vector<T *> &input, si
ARM_COMPUTE_ERROR_ON(out_shape[i] != shape[i]);
}
}
+#endif // defined(ARM_COMPUTE_ASSERTS_ENABLED)
// Calculate output shape
size_t new_size = 0;