Merge pull request #9022 from dkurt:keep_conv_weights_for_halide

This commit is contained in:
Vadim Pisarevsky 2017-06-29 11:09:17 +00:00
commit ac49a17a82

View File

@ -644,7 +644,7 @@ public:
{
// prepare weightsMat where each row is aligned and has enough zero padding on the right to
// use vectorized (i.e. with intrinsics) loops without tail processing
Mat wm = blobs[0].reshape(1, outCn);
Mat wm = blobs[0].reshape(1, outCn).clone();
if( wm.step1() % VEC_ALIGN != 0 )
{
int newcols = (int)alignSize(wm.step1(), VEC_ALIGN);