aboutsummaryrefslogtreecommitdiff
path: root/tests/TensorLibrary.h
diff options
context:
space:
mode:
authorPablo Tello <pablo.tello@arm.com>2017-06-28 11:32:05 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-09-17 14:15:39 +0100
commit997aba2dc6a0b5a8c3b424a31ae8370b395cf0d8 (patch)
treed0c12ba56607ae788c07880875bae39f8960030f /tests/TensorLibrary.h
parent7b7858df42fccefbe6eb086ad516d5c011becd07 (diff)
downloadComputeLibrary-997aba2dc6a0b5a8c3b424a31ae8370b395cf0d8.tar.gz
COMPMID-421: Fixed a problem in Convolution Layer reference values for FP16.
All methods in std::numeric_limits<float16_t> return 0. Change-Id: I2289e01853e1b2c38afdec119ef6fc8af8a9752e Reviewed-on: http://mpd-gerrit.cambridge.arm.com/79312 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Diffstat (limited to 'tests/TensorLibrary.h')
-rw-r--r--tests/TensorLibrary.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/TensorLibrary.h b/tests/TensorLibrary.h
index b05302a9b0..4d7143a206 100644
--- a/tests/TensorLibrary.h
+++ b/tests/TensorLibrary.h
@@ -501,7 +501,7 @@ void TensorLibrary::fill_tensor_uniform(T &&tensor, std::random_device::result_t
#if ARM_COMPUTE_ENABLE_FP16
case DataType::F16:
{
- std::uniform_real_distribution<float> distribution_f16(std::numeric_limits<float16_t>::lowest(), std::numeric_limits<float16_t>::max());
+ std::uniform_real_distribution<float> distribution_f16(-1000.f, 1000.f);
fill(tensor, distribution_f16, seed_offset);
break;
}