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

Fixed some bugs from Halide tests

This commit is contained in:
dkurt
2017-06-27 14:52:46 +03:00
parent eff47b1260
commit 121789f78e
3 changed files with 28 additions and 21 deletions
@@ -192,7 +192,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
{