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-15 09:13:14 +0000
commitcd96a26f67bfbb9b0efe6e0e2b229d0b46b4e3e6 (patch)
treebe95114ff6f5a8a17dace8734be6239312631cea /utils
parent1c32bf396eb690a54fd94487e3f258b2c7d31753 (diff)
downloadComputeLibrary-cd96a26f67bfbb9b0efe6e0e2b229d0b46b4e3e6.tar.gz
COMPMID-1329: Add support for GenerateProposals operator in CL
Change-Id: Ib0798cc17496b7817f5b5769b25d98913a33a69d
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 df16cba9b5..58162000a6 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.