From 5387a3470695106860e4e955990cf4742a9030bc Mon Sep 17 00:00:00 2001 From: =?utf8?q?=EB=B0=95=EC=A2=85=ED=98=84/=EB=8F=99=EC=9E=91=EC=A0=9C?= =?utf8?q?=EC=96=B4Lab=28SR=29/Staff=20Engineer/=EC=82=BC=EC=84=B1?= =?utf8?q?=EC=A0=84=EC=9E=90?= Date: Fri, 31 Aug 2018 13:20:43 +0900 Subject: [PATCH] [enco] Set Conv2D padding for ANN Subnet (#1264) The current implementation assumes that padding is always 0. With this commit, enco now sets Conv2D padding based on padding parameters that IR provides. Signed-off-by: Jonghyun Park --- contrib/enco/core/src/Transforms/Split.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/contrib/enco/core/src/Transforms/Split.cpp b/contrib/enco/core/src/Transforms/Split.cpp index 5f1fa15..f2f9caf 100644 --- a/contrib/enco/core/src/Transforms/Split.cpp +++ b/contrib/enco/core/src/Transforms/Split.cpp @@ -205,13 +205,13 @@ public: } auto left = _binder->addOperand(); - _binder->setOperand(left, 0); + _binder->setOperand(left, conv->pad()->left()); auto right = _binder->addOperand(); - _binder->setOperand(right, 0); + _binder->setOperand(right, conv->pad()->right()); auto top = _binder->addOperand(); - _binder->setOperand(top, 0); + _binder->setOperand(top, conv->pad()->top()); auto bottom = _binder->addOperand(); - _binder->setOperand(bottom, 0); + _binder->setOperand(bottom, conv->pad()->bottom()); auto hstride = _binder->addOperand(); _binder->setOperand(hstride, conv->stride()->horizontal()); auto vstride = _binder->addOperand(); -- 2.7.4