[enco.caffe] Deliver Conv2D padding values via IR (#1271)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 31 Aug 2018 08:33:39 +0000 (17:33 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 31 Aug 2018 08:33:39 +0000 (17:33 +0900)
With this commit, enco Caffe frontend now sets Conv2D padding values
correctly in IR.

Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
contrib/enco/frontend/caffe/src/Frontend.cpp

index ea0f127..886b995 100644 (file)
@@ -206,6 +206,11 @@ enco::Bundle Frontend::load(void) const
       op->stride()->vertical(spec.stride(0));
       op->stride()->horizontal(spec.stride(1));
 
+      op->pad()->top(spec.pad(0));
+      op->pad()->bottom(spec.pad(0));
+      op->pad()->left(spec.pad(1));
+      op->pad()->right(spec.pad(1));
+
       // Create a UnitF instruction
       auto ins = m->entity()->instr()->create<coco::UnitF>();