Skip to content

Commit ac49a17

Browse files
committed
Merge pull request opencv#9022 from dkurt:keep_conv_weights_for_halide
2 parents fb1dcdd + b46f5b1 commit ac49a17

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
@@ -644,7 +644,7 @@ class ConvolutionLayerImpl : public BaseConvolutionLayerImpl
644644
{
645645
// prepare weightsMat where each row is aligned and has enough zero padding on the right to
646646
// use vectorized (i.e. with intrinsics) loops without tail processing
647-
Mat wm = blobs[0].reshape(1, outCn);
647+
Mat wm = blobs[0].reshape(1, outCn).clone();
648648
if( wm.step1() % VEC_ALIGN != 0 )
649649
{
650650
int newcols = (int)alignSize(wm.step1(), VEC_ALIGN);

0 commit comments

Comments
 (0)