From e920d6a62b8d96e08950e81bba769e8674d4921b Mon Sep 17 00:00:00 2001 From: Ramy Elgammal Date: Thu, 19 Aug 2021 22:10:30 +0100 Subject: Printing operators parameters, currently for CpuAdd operator only. Resolves: COMPMID-4718 Change-Id: Id4dd762cd1b759bb814b9d0b1ea0c9ba4dfbae6f Signed-off-by: Ramy Elgammal Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/6139 Reviewed-by: Giorgio Arena Tested-by: Arm Jenkins Comments-Addressed: Arm Jenkins --- utils/TypePrinter.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'utils') 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. -- cgit v1.2.1