1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

dnn: AVX2 fix invalid unaligned read

This commit is contained in:
Alexander Alekhin
2017-06-26 18:52:09 +03:00
parent 623de337e8
commit 93091ba203
@@ -50,6 +50,8 @@
namespace cv {
namespace dnn {
#define _mm256_load_ps _mm256_loadu_ps // "weights" in fastConv_avx2 is not always aligned to 32 bytes
void fastConv_avx2( const float* weights, size_t wstep, const float* bias,
const float* rowbuf, float* output, const int* outShape,
int blockSize, int vecsize, int vecsize_aligned,