Skip to content

Commit

Permalink
dnn(ocl4dnn/conv): bailout on missing kernel configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
alalek committed Nov 7, 2017
1 parent 981009a commit 97181a9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/dnn/src/ocl4dnn/src/ocl4dnn_conv_spatial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}

Expand Down

0 comments on commit 97181a9

Please sign in to comment.