We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fb1dcdd + b46f5b1 commit ac49a17Copy full SHA for ac49a17
modules/dnn/src/layers/convolution_layer.cpp
@@ -644,7 +644,7 @@ class ConvolutionLayerImpl : public BaseConvolutionLayerImpl
644
{
645
// prepare weightsMat where each row is aligned and has enough zero padding on the right to
646
// use vectorized (i.e. with intrinsics) loops without tail processing
647
- Mat wm = blobs[0].reshape(1, outCn);
+ Mat wm = blobs[0].reshape(1, outCn).clone();
648
if( wm.step1() % VEC_ALIGN != 0 )
649
650
int newcols = (int)alignSize(wm.step1(), VEC_ALIGN);
0 commit comments