From 6065ef55b08df98c0a096491d5876855799112db Mon Sep 17 00:00:00 2001 From: =?utf8?q?=D0=90=D0=BD=D0=B4=D1=80=D0=B5=D0=B9=20=D0=A8=D0=B5=D0=B4?= =?utf8?q?=D1=8C=D0=BA=D0=BE/AI=20Tools=20Lab=20/SRR/Engineer/=EC=82=BC?= =?utf8?q?=EC=84=B1=EC=A0=84=EC=9E=90?= Date: Wed, 29 May 2019 07:33:19 +0300 Subject: [PATCH] Front-pad 4dShapes instead of back-pad (#5299) Front-pad 4dShapes instead of back-pad Signed-off-by: Andrei Shedko --- runtimes/neurun/core/src/graph/operand/Shape4DConvert.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)); -- 2.7.4