aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRamy Elgammal <ramelg01@e127066.cambridge.arm.com>2021-08-19 22:10:30 +0100
committerramy.elgammal <ramy.elgammal@arm.com>2021-09-01 14:16:20 +0000
commite920d6a62b8d96e08950e81bba769e8674d4921b (patch)
treeda8308b76a424f18c9b6a66ac39e446b21f64a0d /utils
parentb1db6e16b7041af2212884ed8c6b3300a2a6a976 (diff)
downloadComputeLibrary-e920d6a62b8d96e08950e81bba769e8674d4921b.tar.gz
Printing operators parameters, currently for CpuAdd operator only.
Resolves: COMPMID-4718 Change-Id: Id4dd762cd1b759bb814b9d0b1ea0c9ba4dfbae6f Signed-off-by: Ramy Elgammal <ramy.elgammal@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6139 Reviewed-by: Giorgio Arena <giorgio.arena@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/TypePrinter.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h
index 3ccba2c7e9..58ddb3f7bf 100644
--- a/utils/TypePrinter.h
+++ b/utils/TypePrinter.h
@@ -1056,6 +1056,19 @@ inline std::string to_string(const TensorInfo &info)
return str.str();
}
+/** Formatted output of the ITensorInfo* type.
+ *
+ * @param[in] info Type to output.
+ *
+ * @return Formatted string.
+ */
+inline std::string to_string(const ITensorInfo *info)
+{
+ std::stringstream str;
+ str << info;
+ return str.str();
+}
+
/** Formatted output of the Dimensions type.
*
* @param[in] dimensions Type to output.