From 981b24024778a699fe35968f83e99bc886507576 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vitaliy=20Cherepanov/AI=20Tools=20Lab=20/SRR/Engineer/?= =?utf8?q?=EC=82=BC=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Mon, 30 Jul 2018 13:33:15 +0300 Subject: [PATCH] Fix assert for reshape (#856) remove assert for input shape rank not equal to output shape rank Signed-off-by: Vitaliy Cherepanov --- contrib/nnc/libs/core/src/core/IR/model/actions/ShapeInference.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/contrib/nnc/libs/core/src/core/IR/model/actions/ShapeInference.cpp b/contrib/nnc/libs/core/src/core/IR/model/actions/ShapeInference.cpp index 2b97da4..60404ad 100644 --- a/contrib/nnc/libs/core/src/core/IR/model/actions/ShapeInference.cpp +++ b/contrib/nnc/libs/core/src/core/IR/model/actions/ShapeInference.cpp @@ -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::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 -- 2.7.4