opencv/modules/dnn/src/int8layers
HAN Liutong eba158fb0c
Merge pull request #25230 from hanliutong/rvv-conv
Optimize int8 layers in DNN modules by using RISC-V Vector intrinsic. #25230

This patch optimize 3 functions in the int8 layer by using RVV Native Intrinsic.

This patch was tested on QEMU using VLEN=128 and VLEN=256 on `./bin/opencv_test_dnn --gtest_filter="*Int8*"`;
On the real device (k230, VLEN=128), `EfficientDet_int8` in `opencv_perf_dnn` showed a performance improvement of 1.46x.

| Name of Test                               |  Original | optimized | Speed-up |
| ------------------------------------------ | -------- | ---------- | -------- |
| EfficientDet_int8::DNNTestNetwork::OCV/CPU | 2843.467 | 1947.013   | 1.46     |


### Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

- [ ] I agree to contribute to the project under Apache 2 License.
- [ ] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
- [ ] The PR is proposed to the proper branch
- [ ] There is a reference to the original bug report and related work
- [ ] There is accuracy test, performance test and test data in opencv_extra repository, if applicable
      Patch to opencv_extra has the same branch name.
- [ ] The feature is well documented and sample code can be built with the project CMake
2024-03-31 16:47:06 +03:00
..
batch_norm_layer.cpp Fix for OpenVINO 2024.0 2024-03-18 15:05:50 +04:00
convolution_layer.cpp Merge pull request #25230 from hanliutong/rvv-conv 2024-03-31 16:47:06 +03:00
elementwise_layers.cpp Fix for OpenVINO 2024.0 2024-03-18 15:05:50 +04:00
eltwise_layer.cpp Fix for OpenVINO 2024.0 2024-03-18 15:05:50 +04:00
fully_connected_layer.cpp Merge pull request #25230 from hanliutong/rvv-conv 2024-03-31 16:47:06 +03:00
layers_common.hpp feat: RVP052 Optimization for DNN int8layers 2023-12-21 14:51:41 +08:00
layers_common.simd.hpp Merge pull request #25230 from hanliutong/rvv-conv 2024-03-31 16:47:06 +03:00
layers_rvp052.cpp feat: RVP052 Optimization for DNN int8layers 2023-12-21 14:51:41 +08:00
layers_rvp052.hpp feat: RVP052 Optimization for DNN int8layers 2023-12-21 14:51:41 +08:00
pooling_layer.cpp Fix for OpenVINO 2024.0 2024-03-18 15:05:50 +04:00
quantization_utils.cpp Merge pull request #24892 from opencv-pushbot:gitee/alalek/dnn_avoid_16s_usage 2024-01-26 16:34:17 +03:00
scale_layer.cpp Fix for OpenVINO 2024.0 2024-03-18 15:05:50 +04:00
softmax_layer.cpp Fix for OpenVINO 2024.0 2024-03-18 15:05:50 +04:00