Skip to content

Commit 48ed769

Browse files
committed
Merge pull request opencv#10036 from alalek:fix_ocl4dnn_invalid_kernel
2 parents bffe254 + 97181a9 commit 48ed769

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

modules/dnn/src/ocl4dnn/src/ocl4dnn_conv_spatial.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,8 @@ bool OCL4DNNConvSpatial<Dtype>::Forward(const UMat& bottom,
379379
{
380380
num_ = numImages;
381381
prepareKernel(bottom, top, weight, bias, numImages);
382+
if (bestKernelConfig.empty())
383+
return false;
382384
return convolve(bottom, top, weight, bias, numImages, bestKernelConfig, cv::ocl::Queue::getDefault());
383385
}
384386

0 commit comments

Comments
 (0)