diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2017-08-04 14:58:27 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-09-17 14:16:42 +0100 |
commit | 89010962f2174c4cbc0784038ddf77358fa59480 (patch) | |
tree | 26219731752ac8c1fdd4c18d128999bc94876cb2 /arm_compute/core/Utils.h | |
parent | 6f4933028e2ce1b002d10f91b63d523d05f31683 (diff) | |
download | ComputeLibrary-89010962f2174c4cbc0784038ddf77358fa59480.tar.gz |
COMPMID-417: Fix CLNormalization error issue.
Change-Id: Ie538245ee0451e4cdb28120e80b9a65f56a07e7d
Reviewed-on: http://mpd-gerrit.cambridge.arm.com/82933
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Michele DiGiorgio <michele.digiorgio@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/core/Utils.h')
-rw-r--r-- | arm_compute/core/Utils.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arm_compute/core/Utils.h b/arm_compute/core/Utils.h index af788beeb7..39ec6587de 100644 --- a/arm_compute/core/Utils.h +++ b/arm_compute/core/Utils.h @@ -654,6 +654,20 @@ inline bool is_data_type_fixed_point(DataType dt) } } +/** Create a string with the float in full precision. + * + * @param val Floating point value + * + * @return String with the floating point value. + */ +inline std::string float_to_string_with_full_precision(float val) +{ + std::stringstream ss; + ss.precision(std::numeric_limits<float>::digits10 + 1); + ss << val; + return ss.str(); +} + /** Print consecutive elements to an output stream. * * @param[out] s Output stream to print the elements to. |