Replies: 4 comments 1 reply
-
Release-win10-64bit, JIT mode. run this code: Realization re = best.realize(); it wasted much more time. anyone can help me ? |
Beta Was this translation helpful? Give feedback.
-
`
AOT model, it will waste 8500ms. how to spped it up? anyone can help me ? |
Beta Was this translation helpful? Give feedback.
-
Code: listed on this website, http://halcom.cn/forum.php?mod=viewthread&tid=55968&extra= https://github.com/halcomcn/Halide/blob/main/WITIAITemplateMatching_generate.cpp speed is a little slower. |
Beta Was this translation helpful? Give feedback.
-
`class TemplateWitiaiMain : public Halide::Generator {
private: // file along with tools/GenGen.cpp. slower??? |
Beta Was this translation helpful? Give feedback.
-
`{
Var x, y, x_outer, y_outer, x_inner, y_inner, tile_index;
Func limit;
limit = BoundaryConditions::constant_exterior(source, 1.0f);
RDom matchDom(0, templ.width(), 0, templ.height());
Func score("score");
score(x, y) = sum(matchDom, pow(templ(matchDom.x, matchDom.y) - limit(x + matchDom.x, y + matchDom.y), 2));
}`
Beta Was this translation helpful? Give feedback.
All reactions