From e9997c3be4e26430044160825ecebfc194c812c5 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: Thu, 6 Sep 2018 14:37:58 +0900 Subject: [PATCH] [enco] Correctly set ANN MaxPool2D padding (#1379) This commit revises ANN IR builder to use padding configuration stored in MaxPool2D op (instead of hard-coded ones) Signed-off-by: Jonghyun Park --- contrib/enco/core/src/Transforms/Split.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/enco/core/src/Transforms/Split.cpp b/contrib/enco/core/src/Transforms/Split.cpp index ca8c465..00e1317 100644 --- a/contrib/enco/core/src/Transforms/Split.cpp +++ b/contrib/enco/core/src/Transforms/Split.cpp @@ -261,15 +261,15 @@ public: { auto ifm = _binder->addOperand(unit->ifm()); - // TODO Support padding + // Set padding auto left = _binder->addOperand(); - _binder->setOperand(left, 0); + _binder->setOperand(left, maxpool->pad()->left()); auto right = _binder->addOperand(); - _binder->setOperand(right, 0); + _binder->setOperand(right, maxpool->pad()->right()); auto top = _binder->addOperand(); - _binder->setOperand(top, 0); + _binder->setOperand(top, maxpool->pad()->top()); auto bottom = _binder->addOperand(); - _binder->setOperand(bottom, 0); + _binder->setOperand(bottom, maxpool->pad()->bottom()); // Set horizontal/vertical stride auto hstride = _binder->addOperand(); -- 2.7.4