From 54b8e036b299b4763afa6a74af2502a8b13eb0ad Mon Sep 17 00:00:00 2001 From: Shiqi Yu Date: Tue, 24 Sep 2019 10:17:10 +0800 Subject: [PATCH] a bug fixed A memory violation bug fixed. --- src/facedetectcnn.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/facedetectcnn.cpp b/src/facedetectcnn.cpp index 12a3001..6e9de0c 100644 --- a/src/facedetectcnn.cpp +++ b/src/facedetectcnn.cpp @@ -459,7 +459,7 @@ bool maxpooling2x2S2(const CDataBlob *inputData, CDataBlobchannels; ch += 8) + for (int ch = 0; ch < outputData->channels; ch += 32) { __m256i a; __m256i maxval_uint8x32 = _mm256_load_si256((__m256i const *)(pIn + ch + inputMatOffsetsInElement[0]));