diff options
author | Pablo Tello <pablo.tello@arm.com> | 2017-06-28 11:32:05 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:15:39 +0100 |
commit | 997aba2dc6a0b5a8c3b424a31ae8370b395cf0d8 (patch) | |
tree | d0c12ba56607ae788c07880875bae39f8960030f /tests/TensorLibrary.h | |
parent | 7b7858df42fccefbe6eb086ad516d5c011becd07 (diff) | |
download | ComputeLibrary-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.h | 2 |
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; } |