aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorgiuros01 <giuseppe.rossini@arm.com>2018-10-03 12:44:35 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:55:45 +0000
commitc04a0e8f93c620d05444251e1ae55dcf8c660a1b (patch)
treebdab0d171ea2d0439ea0c0405e8a1a3c9c27bf7c /utils
parent08346e9b9a7dadd2f0765aea64e656902d843e8a (diff)
downloadComputeLibrary-c04a0e8f93c620d05444251e1ae55dcf8c660a1b.tar.gz
COMPMID-1327: Add support for BBoxTransform operator in CL
Change-Id: I91865506166951b3bf7f06a0b2d4cde925cfefb6 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/153447 Tested-by: bsgcomp <bsgcomp@arm.com> Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/TypePrinter.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h
index b868aa94a1..571de9a4ef 100644
--- a/utils/TypePrinter.h
+++ b/utils/TypePrinter.h
@@ -233,6 +233,34 @@ inline std::string to_string(const ROIPoolingLayerInfo &pool_info)
return str.str();
}
+/** Formatted output of the BoundingBoxTransformInfo type.
+ *
+ * @param[out] os Output stream.
+ * @param[in] bbox_info Type to output.
+ *
+ * @return Modified output stream.
+ */
+inline ::std::ostream &operator<<(::std::ostream &os, const BoundingBoxTransformInfo &bbox_info)
+{
+ auto weights = bbox_info.weights();
+ os << "(" << bbox_info.img_width() << "x" << bbox_info.img_height() << ")~" << bbox_info.scale() << "(weights = {" << weights[0] << ", " << weights[1] << ", " << weights[2] << ", " << weights[3] <<
+ "})";
+ return os;
+}
+
+/** Formatted output of the BoundingBoxTransformInfo type.
+ *
+ * @param[in] bbox_info Type to output.
+ *
+ * @return Formatted string.
+ */
+inline std::string to_string(const BoundingBoxTransformInfo &bbox_info)
+{
+ std::stringstream str;
+ str << bbox_info;
+ return str.str();
+}
+
/** Formatted output of the QuantizationInfo type.
*
* @param[out] os Output stream.