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.
1 parent 20f603a commit b46f5b1Copy full SHA for b46f5b1
modules/dnn/src/layers/convolution_layer.cpp
@@ -638,7 +638,7 @@ class ConvolutionLayerImpl : public BaseConvolutionLayerImpl
638
{
639
// prepare weightsMat where each row is aligned and has enough zero padding on the right to
640
// use vectorized (i.e. with intrinsics) loops without tail processing
641
- Mat wm = blobs[0].reshape(1, outCn);
+ Mat wm = blobs[0].reshape(1, outCn).clone();
642
if( wm.step1() % VEC_ALIGN != 0 )
643
644
int newcols = (int)alignSize(wm.step1(), VEC_ALIGN);
0 commit comments