From 925ca0f7402115da3bffb21c04fca0bc822c9b38 Mon Sep 17 00:00:00 2001 From: Abe Mbise Date: Mon, 2 Oct 2017 19:16:33 +0100 Subject: COMPMID-491 Port Utils UNIT tests to new validation Change-Id: Ia99d26768d780d6d0fee9f5e2ed88f3276ecf3d0 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/89908 Reviewed-by: Anthony Barbier Tested-by: Kaizen Reviewed-by: Georgios Pinitas Reviewed-by: Pablo Tello --- utils/TypePrinter.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index 041ec1887a..c955584c76 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -535,7 +535,7 @@ inline ::std::ostream &operator<<(::std::ostream &os, const InterpolationPolicy return os; } -//FIXME: Check why this doesn't work and the TensorShape overload is needed +//FIXME: Check why this doesn't work and the TensorShape and Coordinates overload are needed template inline std::string to_string(const Dimensions &dimensions) { @@ -552,6 +552,14 @@ inline std::string to_string(const TensorShape &shape) return str.str(); } +/** Formatted output of the Coordinates type. */ +inline std::string to_string(const Coordinates &coord) +{ + std::stringstream str; + str << coord; + return str.str(); +} + /** Formatted output of the Rectangle type. */ inline ::std::ostream &operator<<(::std::ostream &os, const Rectangle &rect) { -- cgit v1.2.1