From 89010962f2174c4cbc0784038ddf77358fa59480 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 4 Aug 2017 14:58:27 +0100 Subject: COMPMID-417: Fix CLNormalization error issue. Change-Id: Ie538245ee0451e4cdb28120e80b9a65f56a07e7d Reviewed-on: http://mpd-gerrit.cambridge.arm.com/82933 Tested-by: Kaizen Reviewed-by: Michele DiGiorgio Reviewed-by: Anthony Barbier --- arm_compute/core/Utils.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'arm_compute/core/Utils.h') 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::digits10 + 1); + ss << val; + return ss.str(); +} + /** Print consecutive elements to an output stream. * * @param[out] s Output stream to print the elements to. -- cgit v1.2.1