aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSheri Zhang <sheri.zhang@arm.com>2020-03-19 14:29:49 +0000
committerSheri Zhang <sheri.zhang@arm.com>2020-03-23 10:32:34 +0000
commit970353e3e9ee402ab7294230654b5b9151cd57f3 (patch)
tree7e93d61cb1c404b42ca66e23536314e475989b77 /tests
parent569b7e9065d316a6bfbc49fdd95d67ae328cefd3 (diff)
downloadComputeLibrary-970353e3e9ee402ab7294230654b5b9151cd57f3.tar.gz
COMPMID-3226: Update CLDirectConvolution test input range
Signed-off-by: Sheri Zhang <sheri.zhang@arm.com> Change-Id: I837c41de89fcb6b06650d8aaae240d20eb5cc830 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2912 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/validation/fixtures/DirectConvolutionLayerFixture.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/validation/fixtures/DirectConvolutionLayerFixture.h b/tests/validation/fixtures/DirectConvolutionLayerFixture.h
index 1d67a2a653..c4e4180900 100644
--- a/tests/validation/fixtures/DirectConvolutionLayerFixture.h
+++ b/tests/validation/fixtures/DirectConvolutionLayerFixture.h
@@ -105,8 +105,8 @@ protected:
}
case DataType::QASYMM8_SIGNED:
{
- std::pair<int, int> bounds = get_quantized_qasymm8_signed_bounds(tensor.quantization_info(), -1.0f, 1.0f);
- std::uniform_int_distribution<int8_t> distribution(bounds.first, bounds.second);
+ // Use small input range to avoid all the test results being saturated at the end.
+ std::uniform_int_distribution<int8_t> distribution(-25, 25);
library->fill(tensor, distribution, i);
break;
}