aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorManuel Bottini <manuel.bottini@arm.com>2019-02-13 16:34:56 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2019-02-18 13:41:28 +0000
commit5209be567a0a7df4d205d3dc2b971b8f03964593 (patch)
treed46aa0667db72c32a2066a4d1d893db225c2b6db /utils
parent453ef521926e47d5a65b576da48288a6aa27e813 (diff)
downloadComputeLibrary-5209be567a0a7df4d205d3dc2b971b8f03964593.tar.gz
COMPMID-1999: Add support for GenerateProposals operator in CL
Change-Id: Ie08a6874347085f96b00f25bdb605eee7d683c25 Signed-off-by: giuros01 <giuseppe.rossini@arm.com> Reviewed-on: https://review.mlplatform.org/719 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Reviewed-by: Michalis Spyrou <michalis.spyrou@arm.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/TypePrinter.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h
index 3361c39ee3..f2cf606a00 100644
--- a/utils/TypePrinter.h
+++ b/utils/TypePrinter.h
@@ -261,6 +261,58 @@ inline std::string to_string(const BoundingBoxTransformInfo &bbox_info)
return str.str();
}
+/** Formatted output of the ComputeAnchorsInfo type.
+ *
+ * @param[out] os Output stream.
+ * @param[in] anchors_info Type to output.
+ *
+ * @return Modified output stream.
+ */
+inline ::std::ostream &operator<<(::std::ostream &os, const ComputeAnchorsInfo &anchors_info)
+{
+ os << "(" << anchors_info.feat_width() << "x" << anchors_info.feat_height() << ")~" << anchors_info.spatial_scale();
+ return os;
+}
+
+/** Formatted output of the ComputeAnchorsInfo type.
+ *
+ * @param[in] anchors_info Type to output.
+ *
+ * @return Formatted string.
+ */
+inline std::string to_string(const ComputeAnchorsInfo &anchors_info)
+{
+ std::stringstream str;
+ str << anchors_info;
+ return str.str();
+}
+
+/** Formatted output of the GenerateProposalsInfo type.
+ *
+ * @param[out] os Output stream.
+ * @param[in] proposals_info Type to output.
+ *
+ * @return Modified output stream.
+ */
+inline ::std::ostream &operator<<(::std::ostream &os, const GenerateProposalsInfo &proposals_info)
+{
+ os << "(" << proposals_info.im_width() << "x" << proposals_info.im_height() << ")~" << proposals_info.im_scale();
+ return os;
+}
+
+/** Formatted output of the GenerateProposalsInfo type.
+ *
+ * @param[in] proposals_info Type to output.
+ *
+ * @return Formatted string.
+ */
+inline std::string to_string(const GenerateProposalsInfo &proposals_info)
+{
+ std::stringstream str;
+ str << proposals_info;
+ return str.str();
+}
+
/** Formatted output of the QuantizationInfo type.
*
* @param[out] os Output stream.