aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2020-02-05 16:22:14 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2020-02-05 21:14:13 +0000
commit4bce11548268b9a10b0f06eff3cff9ae06d5b9dd (patch)
treec5f317521d44c70cfd568ec19bb4f5a5b987e94f
parentf30318adafc9825b785738930ad239e74d227a42 (diff)
downloadComputeLibrary-4bce11548268b9a10b0f06eff3cff9ae06d5b9dd.tar.gz
COMPMID-3063: Address Custom Convolution failures
Disallows generation of scales equal to 0 on CustomConvolution fixture as it is expected to fail according to the OpenVX specification. Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com> Change-Id: Ie1311c1ebbb34c72dee62da8bfc6016c4e05b83e Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2687 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
-rw-r--r--tests/validation/fixtures/ConvolutionFixture.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/validation/fixtures/ConvolutionFixture.h b/tests/validation/fixtures/ConvolutionFixture.h
index 8877bd145a..04172a629e 100644
--- a/tests/validation/fixtures/ConvolutionFixture.h
+++ b/tests/validation/fixtures/ConvolutionFixture.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 ARM Limited.
+ * Copyright (c) 2017-2020 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -50,10 +50,11 @@ protected:
{
std::mt19937 gen(library->seed());
std::uniform_int_distribution<uint8_t> distribution(0, 255);
+ std::uniform_int_distribution<uint8_t> scale_distribution(1, 255);
const uint8_t constant_border_value = distribution(gen);
- // Generate random scale value between 0 and 255.
- const uint32_t scale = distribution(gen);
+ // Generate random scale value between 1 and 255.
+ const uint32_t scale = scale_distribution(gen);
ARM_COMPUTE_ERROR_ON(3 != width && 5 != width && 7 != width && 9 != width);
ARM_COMPUTE_ERROR_ON(3 != height && 5 != height && 7 != height && 9 != height);