Skip to content

Commit 69ff7a7

Browse files
committed
Merge pull request opencv#14228 from dkurt:conv_1x1
2 parents 3ca6a72 + e3286c9 commit 69ff7a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/dnn/src/layers/convolution_layer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ class ConvolutionLayerImpl CV_FINAL : public BaseConvolutionLayerImpl
606606

607607
int inpCnAll = input.size[1], width = input.size[3], height = input.size[2];
608608
int inpCn = inpCnAll / ngroups;
609-
p.is1x1_ = kernel == Size(0,0) && pad == Size(0, 0);
609+
p.is1x1_ = kernel == Size(1,1) && pad == Size(0, 0);
610610
p.useAVX = checkHardwareSupport(CPU_AVX);
611611
p.useAVX2 = checkHardwareSupport(CPU_AVX2);
612612
p.useAVX512 = CV_CPU_HAS_SUPPORT_AVX512_SKX;

0 commit comments

Comments
 (0)