[nnc] Fix interpreter tests (#1581)
authorVladimir Plazun/AI Tools Lab /SRR/Engineer/삼성전자 <v.plazun@partner.samsung.com>
Wed, 19 Sep 2018 15:19:44 +0000 (18:19 +0300)
committerРоман Михайлович Русяев/AI Tools Lab /SRR/Staff Engineer/삼성전자 <r.rusyaev@samsung.com>
Wed, 19 Sep 2018 15:19:44 +0000 (18:19 +0300)
Force borderType to be set to `ZEROFILLED` in pooling operator creation
Fix check for gtest availability( previosly was `getst` instead of `gtest` )
Add status message instead silent fail if tests cannot be build

Signed-off-by: Vladimir Plazun <v.plazun@partner.samsung.com>
contrib/nnc/tests/interpreter/CMakeLists.txt
contrib/nnc/tests/interpreter/graph_creator.cpp

index 68d15e9..edb7352 100644 (file)
@@ -1,10 +1,11 @@
 nncc_find_package(FlatBuffers QUIET)
 if (NOT FlatBuffers_FOUND)
+  message(STATUS "FlatBuffers_FOUND is not set")
   return()
 endif()
 
-if (NOT TARGET getst)
-  # we can't built this target properly if unit tests is disabled
+if (NOT TARGET gtest)
+  message(STATUS "gtest is not available, we can't build this target properly if unit tests are disabled")
   return()
 endif()
 
index 110bbe8..ed5e795 100644 (file)
@@ -44,7 +44,7 @@ static INode::Ref createDepthwiseConv2D(std::unique_ptr<Graph>& g, const opinfo:
 static INode::Ref createPool(std::unique_ptr<Graph>& g, const opinfo::OperatorInfo* opInfo)
 {
   return g->create<ops::PoolOp>("y", getShapeParam(opInfo, 0), getShapeParam(opInfo, 1),
-                                getPoolingType(opInfo), getPaddingType(opInfo));
+                                getPoolingType(opInfo), getPaddingType(opInfo), ops::PoolOp::BorderType::ZEROFILLED);
 }
 
 static INode::Ref createConcatenation(std::unique_ptr<Graph>& g, const opinfo::OperatorInfo* opInfo)