With this commit, caffe frontend now emits Eval instruction (instead of
UnitF) for ReLU layers.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
ofm_obj->bag(ofm_bag);
ofm_obj->layout(coco::FeatureLayouts::BCHW::create(ofm_obj->shape()));
+ // Create a Load Op
+ auto load = m->entity()->op()->create<coco::Load>();
+
+ load->object(ifm_obj);
+
// Create a ReLU op
auto op = m->entity()->op()->create<coco::ReLU>();
- // Create a UnitF instruction
- // TODO Use UnitT later
- auto ins = m->entity()->instr()->create<coco::UnitF>();
+ op->arg(load);
- ins->ifm(ifm_obj);
- ins->ofm(ofm_obj);
+ // Create a Eval instruction
+ auto ins = m->entity()->instr()->create<coco::Eval>();
+
+ ins->out(ofm_obj);
ins->op(op);
// Append the instruction to the block