diff options
Diffstat (limited to 'utils/TypePrinter.h')
-rw-r--r-- | utils/TypePrinter.h | 13 |
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. |