diff options
author | Abe Mbise <abe.mbise@arm.com> | 2017-10-02 19:16:33 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:35:24 +0000 |
commit | 925ca0f7402115da3bffb21c04fca0bc822c9b38 (patch) | |
tree | a25e82e5300d5b4b20ab5c40991dbc471bc2a5af /utils/TypePrinter.h | |
parent | a4e5e1e68069e5ac8a776a28211178fd959b13f2 (diff) | |
download | ComputeLibrary-925ca0f7402115da3bffb21c04fca0bc822c9b38.tar.gz |
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 <anthony.barbier@arm.com>
Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Diffstat (limited to 'utils/TypePrinter.h')
-rw-r--r-- | utils/TypePrinter.h | 10 |
1 files changed, 9 insertions, 1 deletions
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 <typename T> inline std::string to_string(const Dimensions<T> &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) { |