From: Андрей Шедько/AI Tools Lab /SRR/Engineer/삼성전자 Date: Wed, 29 May 2019 04:33:19 +0000 (+0300) Subject: Front-pad 4dShapes instead of back-pad (#5299) X-Git-Tag: submit/tizen/20190809.050447~746 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6065ef55b08df98c0a096491d5876855799112db;p=platform%2Fcore%2Fml%2Fnnfw.git Front-pad 4dShapes instead of back-pad (#5299) Front-pad 4dShapes instead of back-pad Signed-off-by: Andrei Shedko --- diff --git a/runtimes/neurun/core/src/graph/operand/Shape4DConvert.h b/runtimes/neurun/core/src/graph/operand/Shape4DConvert.h index d5931cb..9b8d44e 100644 --- a/runtimes/neurun/core/src/graph/operand/Shape4DConvert.h +++ b/runtimes/neurun/core/src/graph/operand/Shape4DConvert.h @@ -34,13 +34,13 @@ inline LowerInfo::Shape4D asShape4D(const model::Shape &shape) return LowerInfo::Shape4D(1, 1, 1, 1); case 1u: - return LowerInfo::Shape4D(shape.dim(0), 1, 1, 1); + return LowerInfo::Shape4D(1, 1, 1, shape.dim(0)); case 2u: - return LowerInfo::Shape4D(shape.dim(0), shape.dim(1), 1, 1); + return LowerInfo::Shape4D(1, 1, shape.dim(0), shape.dim(1)); case 3u: - return LowerInfo::Shape4D(shape.dim(0), shape.dim(1), shape.dim(2), 1); + return LowerInfo::Shape4D(1, shape.dim(0), shape.dim(1), shape.dim(2)); case 4u: return LowerInfo::Shape4D(shape.dim(0), shape.dim(1), shape.dim(2), shape.dim(3));