From 9d7b690fd886bcc514a6aa8d17d53e25e3500a33 Mon Sep 17 00:00:00 2001 From: Pablo Marquez Tello Date: Mon, 19 Dec 2022 17:12:53 +0000 Subject: Fixed various mismatches in CpuCastKernel * Fixes various mismatches when converting FP32 to BF16 and BF16 to FP32 * Fixed segfault when trying logging=1 and trying to log BF16 * Resolves MLCE-979 Change-Id: Ie517d0b7411b4e3a7fecdee588f0e073d290625a Signed-off-by: Pablo Marquez Tello Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/8830 Comments-Addressed: Arm Jenkins Reviewed-by: Viet-Hoa Do Tested-by: Arm Jenkins Benchmark: Arm Jenkins --- utils/TypePrinter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index 9f20b38b96..d4265bfdbd 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -480,7 +480,7 @@ inline ::std::ostream &operator<<(::std::ostream &os, const BoundingBoxTransform inline ::std::ostream &operator<<(::std::ostream &os, const bfloat16 &v) { std::stringstream str; - str << v; + str << static_cast(v); os << str.str(); return os; } -- cgit v1.2.1