From f3b53c00cbdfeba9b466368e4707bcedb60db433 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: Tue, 4 Sep 2018 17:22:06 +0900 Subject: [PATCH] [enco.caffe] Set MaxPool2D op stride values (#1323) With this commit, Caffe frontend now correctly sets stride of MaxPool2D operation using the values inferred from caffe model. Signed-off-by: Jonghyun Park --- contrib/enco/frontend/caffe/src/Frontend.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/enco/frontend/caffe/src/Frontend.cpp b/contrib/enco/frontend/caffe/src/Frontend.cpp index 8a574d8..249ac26 100644 --- a/contrib/enco/frontend/caffe/src/Frontend.cpp +++ b/contrib/enco/frontend/caffe/src/Frontend.cpp @@ -268,6 +268,9 @@ enco::Bundle Frontend::load(void) const op->window()->vertical(spec.window_height()); op->window()->horizontal(spec.window_width()); + op->stride()->vertical(spec.vertical_stride()); + op->stride()->horizontal(spec.horizontal_stride()); + // Create a UnitF instruction auto ins = m->entity()->instr()->create(); -- 2.7.4