]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - tidl/tidl-api.git/blobdiff - viewer/dot_graph.cpp
Merge tag 'v01.03.00' into develop
[tidl/tidl-api.git] / viewer / dot_graph.cpp
index e281c195c186a281421e822d30fcf167a6ad63d2..ac2d868962fed75034123d3e1ebed68d6f6978a6 100644 (file)
@@ -1,5 +1,5 @@
 /******************************************************************************
 /******************************************************************************
- * Copyright (c) 2017-18, Texas Instruments Incorporated - http://www.ti.com/
+ * Copyright (c) 2017-2018, Texas Instruments Incorporated - http://www.ti.com/
  *  All rights reserved.
  *
  *  Redistribution and use in source and binary forms, with or without
  *  All rights reserved.
  *
  *  Redistribution and use in source and binary forms, with or without
@@ -247,7 +247,8 @@ std::string PoolingProperties(const sTIDL_PoolingParams_t& p)
     else if (p.poolingType == TIDL_AveragePooling)
         s += " Average";
 
     else if (p.poolingType == TIDL_AveragePooling)
         s += " Average";
 
-    s+= "\\n" + std::to_string(p.kernelW) + "x" + std::to_string(p.kernelH);
+    if (p.kernelW != 0 && p.kernelH != 0)
+        s+= "\\n" + std::to_string(p.kernelW) + "x" + std::to_string(p.kernelH);
 
     return s;
 }
 
     return s;
 }