aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMatthew Bentham <Matthew.Bentham@arm.com>2023-06-15 14:55:35 +0000
committerMatthew Bentham <matthew.bentham@arm.com>2023-06-16 10:53:02 +0000
commitf66a7e864c3a44272dc81e806ac690c5cc3e4e28 (patch)
treec6597f52cff594f4ab86b884a9d8eeb7e39118f7 /utils
parent043613fbb199e2c4fdd12c2c9a1785db9b0c45fa (diff)
downloadComputeLibrary-f66a7e864c3a44272dc81e806ac690c5cc3e4e28.tar.gz
Fix potential infinite recursion in bfloat16 printer
Change-Id: I5f186749caf6e534d71b41666a276b47f4d7c454 Signed-off-by: Matthew Bentham <Matthew.Bentham@arm.com> Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/c/VisualCompute/ComputeLibrary/+/528134 Reviewed-by: Matthew Bentham <matthew.bentham@arm.com> Reviewed-by: Jakub Sujak <jakub.sujak@arm.com> Tested-by: bsgcomp <bsgcomp@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/9783 Reviewed-by: Viet-Hoa Do <viet-hoa.do@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/TypePrinter.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h
index be5880de86..0df320d7e0 100644
--- a/utils/TypePrinter.h
+++ b/utils/TypePrinter.h
@@ -488,10 +488,7 @@ inline ::std::ostream &operator<<(::std::ostream &os, const BoundingBoxTransform
#if defined(ARM_COMPUTE_ENABLE_BF16)
inline ::std::ostream &operator<<(::std::ostream &os, const bfloat16 &v)
{
- std::stringstream str;
- str << v;
- os << str.str();
- return os;
+ return os << float(v);
}
#endif /* defined(ARM_COMPUTE_ENABLE_BF16) */