aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/TypePrinter.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/utils/TypePrinter.h b/utils/TypePrinter.h
index 2d5c618bce..863fcaf6d9 100644
--- a/utils/TypePrinter.h
+++ b/utils/TypePrinter.h
@@ -727,7 +727,15 @@ inline std::string to_string(const PoolingType &type)
inline std::string to_string(const PoolingLayerInfo &info)
{
std::stringstream str;
- str << info.pool_type();
+ str << "{Type=" << info.pool_type() << ","
+ << "IsGlobalPooling=" << info.is_global_pooling();
+ if(!info.is_global_pooling())
+ {
+ str << ","
+ << "PoolSize=" << info.pool_size() << ","
+ << "PadStride=" << info.pad_stride_info();
+ }
+ str << "}";
return str.str();
}