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

dnn(ocl4dnn): Fix relu fusion bug

Incorrect type of negative_slope result in this bug.

Also and OCL test for darknet to validate this patch.

Signed-off-by: Wu Zhiwen <zhiwen.wu@intel.com>
This commit is contained in:
Wu Zhiwen
2017-11-17 16:21:56 +08:00
parent 6936ec7dbd
commit 394101d6ed
2 changed files with 61 additions and 1 deletions
+1 -1
View File
@@ -302,7 +302,7 @@ class OCL4DNNConvSpatial
std::stringstream options_;
cv::ocl::ProgramSource src_;
int32_t prev_kernel_type_;
bool negative_slope_;
float negative_slope_;
UMat negative_slope_umat_;
ocl4dnnFusedActiv_t fused_activ_;
};