Fix assert for reshape (#856)
authorVitaliy Cherepanov/AI Tools Lab /SRR/Engineer/삼성전자 <v.cherepanov@samsung.com>
Mon, 30 Jul 2018 10:33:15 +0000 (13:33 +0300)
committerSergey Vostokov/AI Tools Lab /SRR/Staff Engineer/삼성전자 <s.vostokov@samsung.com>
Mon, 30 Jul 2018 10:33:15 +0000 (19:33 +0900)
remove assert for input shape rank
not equal to output shape rank

Signed-off-by: Vitaliy Cherepanov <v.cherepanov@samsung.com>
contrib/nnc/libs/core/src/core/IR/model/actions/ShapeInference.cpp

index 2b97da4..60404ad 100644 (file)
@@ -232,8 +232,6 @@ void ShapeInference::visit(ADT::INode::Ref node, ops::ReshapeOp &op)
   //-1 in shape underflows to UINT32_MAX
   const auto autoDimension  = std::numeric_limits<uint32_t>::max();
 
-  assert(inShape.rank() == outShape.rank());
-
   auto inElementsNum = num_elements(inShape);
   uint32_t outElementsNum = 1;
   //can't use num_elements due to -1 in input shape and Shape using unsigned ints for dimensions