Commit 48ed769b authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #10036 from alalek:fix_ocl4dnn_invalid_kernel

parents bffe254a 97181a90
......@@ -379,6 +379,8 @@ bool OCL4DNNConvSpatial<Dtype>::Forward(const UMat& bottom,
{
num_ = numImages;
prepareKernel(bottom, top, weight, bias, numImages);
if (bestKernelConfig.empty())
return false;
return convolve(bottom, top, weight, bias, numImages, bestKernelConfig, cv::ocl::Queue::getDefault());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment