1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

Merge pull request #9003 from dkurt:halide_bug_fixes

This commit is contained in:
Vadim Pisarevsky
2017-06-28 08:48:27 +00:00
3 changed files with 28 additions and 21 deletions
@@ -234,7 +234,7 @@ struct ReLUFunctor
Halide::Var x("x"), y("y"), c("c"), n("n");
if (slope)
{
top(x, y, c, n) = select(input >= 0.0f, input, slope);
top(x, y, c, n) = select(input >= 0.0f, input, slope * input);
}
else
{
@@ -78,7 +78,6 @@ public:
wpadding.setTo(Scalar::all(0.));
weightsMat = weightsBuf.colRange(0, vecsize);
blobs[0].copyTo(weightsMat);
blobs[0] = weightsMat;
}
if (bias)