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:
@@ -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_;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user