NEON warpaffine_u8 算子存在内存踩踏。
Closed this issue · 0 comments
FanXuZeng commented
1145 行
for (int32_t i = 0; i < outHeight; i += BLOCK_SIZE) {
size_t blockHeight = std::min<size_t>(BLOCK_SIZE, inHeight - i);
for (int32_t j = 0; j < outWidth; j += BLOCK_SIZE) {
size_t blockWidth = std::min<size_t>(BLOCK_SIZE, inWidth - j);
需要改为
for (int32_t i = 0; i < outHeight; i += BLOCK_SIZE) {
size_t blockHeight = std::min<size_t>(BLOCK_SIZE, **outHeight** - i);
for (int32_t j = 0; j < outWidth; j += BLOCK_SIZE) {
size_t blockWidth = std::min<size_t>(BLOCK_SIZE, **outWidth** - j);