[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>
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h
index 1d881f8..d31c16c 100644
--- a/utils/TypePrinter.h
+++ b/utils/TypePrinter.h
@@ -769,6 +769,24 @@
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 @@
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.