From d7647d4ebd0f0b5253b7f31ffcd48a851ba62947 Mon Sep 17 00:00:00 2001 From: Giuseppe Rossini Date: Tue, 17 Jul 2018 18:13:13 +0100 Subject: [COMPMID-1229] Implementing Pad on OpenCL -FP32/FP16 Change-Id: Ideead99410e5e0bda1035030af1bbcd0a65ea15e Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/144792 Tested-by: bsgcomp Reviewed-by: Georgios Pinitas --- utils/TypePrinter.h | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'utils') diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h index 1d881f8c06..d31c16c32b 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -769,6 +769,24 @@ inline ::std::ostream &operator<<(::std::ostream &os, const BorderSize &border) return os; } +/** Formatted output of the PaddingList type. + * + * @param[out] os Output stream. + * @param[in] padding Type to output. + * + * @return Modified output stream. + */ +inline ::std::ostream &operator<<(::std::ostream &os, const PaddingList &padding) +{ + os << "{"; + for(auto const &p : padding) + { + os << "{" << p.first << "," << p.second << "}"; + } + os << "}"; + return os; +} + /** Formatted output of the InterpolationPolicy type. * * @param[out] os Output stream. @@ -1108,6 +1126,19 @@ inline std::string to_string(const BorderSize &border) return str.str(); } +/** Formatted output of the PaddingList type. + * + * @param[in] padding Type to output. + * + * @return Formatted string. + */ +inline std::string to_string(const PaddingList &padding) +{ + std::stringstream str; + str << padding; + return str.str(); +} + /** Formatted output of the InterpolationPolicy type. * * @param[in] policy Type to output. -- cgit v1.2.1