diff options
author | Michalis Spyrou <michalis.spyrou@arm.com> | 2017-06-14 18:00:05 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:15:39 +0100 |
commit | 0a8334cb78dae66fdc31257a96ba15f7c41bde50 (patch) | |
tree | c8e5f290f8a9a674588e1d67f6a623debf9397f7 /tests/validation/NEON/Fixedpoint/Exp_QS8.cpp | |
parent | e5f8fd64a46ce61dac61fd50095a27cfd94930b5 (diff) | |
download | ComputeLibrary-0a8334cb78dae66fdc31257a96ba15f7c41bde50.tar.gz |
COMPMID-400 Add support for 16 bit fixed point arithmetic.
Change-Id: Iebfaef1b219d80d6362b7fd4b1357612b31e43cb
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/77749
Reviewed-by: Moritz Pflanzer <moritz.pflanzer@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests/validation/NEON/Fixedpoint/Exp_QS8.cpp')
-rw-r--r-- | tests/validation/NEON/Fixedpoint/Exp_QS8.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp b/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp index 086314fdd3..f8fc0c2ea3 100644 --- a/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp +++ b/tests/validation/NEON/Fixedpoint/Exp_QS8.cpp @@ -78,9 +78,9 @@ Tensor compute_exp_qs8(const TensorShape &shape, int fixed_point_position) BOOST_TEST(!src.info()->is_resizable()); BOOST_TEST(!dst.info()->is_resizable()); - // Fill tensors. Keep the range between (1, (1 << (fixed_point_position - 1))) so the result won't + // Fill tensors. Keep the range between [-1.0, 1.0) so the result won't // overflow. E.g. e^7 = 1096, which cannot be represented in QS8 - std::uniform_int_distribution<> distribution(1, (1 << (fixed_point_position - 1))); + std::uniform_int_distribution<> distribution(-(1 << (fixed_point_position - 1)), (1 << (fixed_point_position - 1))); library->fill(NEAccessor(src), distribution, 0); Iterator input(&src, window); |