mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 20:42:53 +08:00
dnn(ocl4dnn/conv): bailout on missing kernel configuration
This commit is contained in:
parent
981009ac1f
commit
97181a90ba
@ -379,6 +379,8 @@ bool OCL4DNNConvSpatial<Dtype>::Forward(const UMat& bottom,
|
|||||||
{
|
{
|
||||||
num_ = numImages;
|
num_ = numImages;
|
||||||
prepareKernel(bottom, top, weight, bias, numImages);
|
prepareKernel(bottom, top, weight, bias, numImages);
|
||||||
|
if (bestKernelConfig.empty())
|
||||||
|
return false;
|
||||||
return convolve(bottom, top, weight, bias, numImages, bestKernelConfig, cv::ocl::Queue::getDefault());
|
return convolve(bottom, top, weight, bias, numImages, bestKernelConfig, cv::ocl::Queue::getDefault());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user