mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Fix fully-connected layer in case of number of rows less than 4
This commit is contained in:
@@ -612,7 +612,7 @@ bool ocl4dnnGEMV<float>(const CBLAS_TRANSPOSE TransA,
|
||||
ret = k.run(1, globalsize, localsize, false);
|
||||
}
|
||||
|
||||
if ((row_size % 4) != 0 && ret)
|
||||
if (row_size < 4 || ((row_size % 4) != 0 && ret))
|
||||
{
|
||||
String kname = format("matvec_mul1_%s", use_half ? "half" : "float");
|
||||
ocl::Kernel k_1(kname.c_str(), cv::ocl::dnn::matvec_mul_oclsrc, opts);
|
||||
|
||||
Reference in New Issue
Block a user