[enco.caffe] Set Conv2D stride (#1256)
author박종현/동작제어Lab(SR)/Staff Engineer/삼성전자 <jh1302.park@samsung.com>
Fri, 31 Aug 2018 00:52:43 +0000 (09:52 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Fri, 31 Aug 2018 00:52:43 +0000 (09:52 +0900)
With this commit, enco Caffe frontend now sets strides for Conv2D op
entity.

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

index 8a6f3ea..ea0f127 100644 (file)
@@ -203,6 +203,8 @@ enco::Bundle Frontend::load(void) const
       auto op = m->entity()->op()->create<coco::Conv2D>();
 
       op->ker(ker_obj);
+      op->stride()->vertical(spec.stride(0));
+      op->stride()->horizontal(spec.stride(1));
 
       // Create a UnitF instruction
       auto ins = m->entity()->instr()->create<coco::UnitF>();