With this commit, ANNOpBuilder is now able to build ANN IR from PadF Op
tree.
Signed-off-by: Jonghyun Park <jh1302.park@samsung.com>
}
}
}
+ else if (auto op = eval->op()->asPadF())
+ {
+ if (auto load = op->arg()->asLoad())
+ {
+ // Let's compile the following code fragment:
+ //
+ // %ofm = eval(PadF(Load(%ifm))
+ //
+ auto ifm = load->object()->asFeature();
+ auto ofm = eval->out()->asFeature();
+
+ assert(ifm != nullptr && ofm != nullptr);
+
+ auto app = make_unique<ANNPadFAppender>();
+
+ app->pad(op->pad());
+
+ app->ifm(ifm);
+ app->ofm(ofm);
+
+ return std::move(app);
+ }
+ }
else if (auto relu = eval->op()->asReLU())
{
if (auto load = relu->arg()->asLoad())