mirror of
https://github.com/opencv/opencv.git
synced 2026-12-02 12:12:06 -06:00
* dnn: fix int8 depthwise 3x3 convolution with dilation and small heights The first output column of each row read the input samples at 0 and dilation_w instead of dilation_w - pad_left and 2*dilation_w - pad_left, and with a small height only the top taps were skipped, so the bottom taps read the row below the input. Same change as in the float kernels, applied to the int8 kernels; adds an accuracy test against a direct computation. * dnn: test int8 depthwise edge cases through the AVX2/LASX vector loop The test widths 20 and 33 left fewer than 32 outputs, so only the scalar code of the AVX2 and LASX kernels was run. Use widths 20, 40 and 71 so that the 32-output vector loop (stride 1, and stride 2 with dilation_w 1) and the scalar tail both run for the edge configurations.