aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorGiuseppe Rossini <giuseppe.rossini@arm.com>2018-07-17 18:13:13 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:54:54 +0000
commitd7647d4ebd0f0b5253b7f31ffcd48a851ba62947 (patch)
tree9bdd2c54130937bd1a858323c84640392f3e3b05 /utils
parentc30b668bf7b3e7f841ea8ef9295f43fc69519e15 (diff)
downloadComputeLibrary-d7647d4ebd0f0b5253b7f31ffcd48a851ba62947.tar.gz
[COMPMID-1229] Implementing Pad on OpenCL -FP32/FP16
Change-Id: Ideead99410e5e0bda1035030af1bbcd0a65ea15e Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/144792 Tested-by: bsgcomp <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/TypePrinter.h31
1 files changed, 31 insertions, 0 deletions
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.