dnn(ocl4dnn/conv): bailout on missing kernel configuration

This commit is contained in:
Alexander Alekhin 2017-11-07 17:02:17 +03:00
parent 981009ac1f
commit 97181a90ba

View File

@ -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());
}