// TODO Check data layout
return true;
}
+
+ bool visit(const coco::ReLU *) override
+ {
+ // TODO Check data layout
+ return true;
+ }
};
return ins->accept(CompatibilityCheck{}) ? COMPATIBLE : INCOMPATIBLE;
{ifm, ker, bias, left, right, top, bottom, hstride, vstride, fuse},
{ofm});
}
+ else if (unit->op()->asReLU())
+ {
+ auto ifm = _binder->addOperand<float>(unit->ifm());
+ auto ofm = _binder->addOperand<float>(unit->ofm());
+
+ _binder->addOperation(ann::Operation::Code::RELU, {ifm}, {ofm});
+ }
else
{
throw std::runtime_error{"Not supported, yet"};