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 d31c16c32b..10e407ddfa 100644 --- a/utils/TypePrinter.h +++ b/utils/TypePrinter.h @@ -220,6 +220,19 @@ inline ::std::ostream &operator<<(::std::ostream &os, const ROIPoolingLayerInfo return os; } +/** Formatted output of the ROIPoolingInfo type. + * + * @param[in] pool_info Type to output. + * + * @return Formatted string. + */ +inline std::string to_string(const ROIPoolingLayerInfo &pool_info) +{ + std::stringstream str; + str << pool_info; + return str.str(); +} + /** Formatted output of the QuantizationInfo type. * * @param[out] os Output stream. |