Optimization method based on 4-bit common convolution calculation
An optimization method and convolution technology, applied in the field of image recognition, can solve problems such as slow speed, and achieve the effect of speed improvement, simple steps, and optimization of existing technologies
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 example approach
[0353] At this time, the simd instruction algorithm is about 20 times higher than the pure C algorithm.
[0354] Specifically, as Figure 8 As shown, the method according to the first embodiment of the present invention includes the following steps:
[0355] S1, let the input data indata be a set of input depth in_depth 32, width in_width 512, height in_height 512 data; convolution kernel data filter_data is a set of output depth out_depth 128, input depth in_depth 32, which is the same as the input The data depth is the same, the convolution kernel width ft_w is 3, and the convolution kernel height ft_h is 3 data;
[0356] Let the output data be the structure of the feature map outdata: the depth is out_depth, the width is out_width, and the height is out_height; in the convolution calculation, there is a step size, and the step size is set as stride;
[0357] Set simd type variables: sum_0, sum_1, in_value, in_0, ft_0, vrt1, vrt2, muls, mul_0, mul_1; other param...
no. 2 example approach
[0418] S7.3, perform fn=fn+1, and return to step S7.1.
[0419] like Figure 11 As shown in the second embodiment of the present invention, the method can also be the following steps:
[0420] S1, let the input data indata be a set of input depth in_depth 32, width in_width 512, height in_height 512 data; convolution kernel data filter_data is a set of output depth out_depth 128, input depth in_depth 32, which is the same as the input The data depth is the same, the convolution kernel width ft_w is 3, and the convolution kernel height ft_h is 3 data;
[0421] Let the output data be the structure of the feature map outdata: the depth is out_depth, the width is out_width, and the height is out_height; in the convolution calculation, there is a step size, and the step size is set as stride;
[0422] Set simd type variables: sum_0, sum_1, sum_20, sum_21, in_value, in_value1, in_0, in_1, ft_0, vrt1, vrt2, mul_0, other parameters are pointers or specific conventional da...
PUM
![No PUM](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/noPUMSmall.5c5f49c7.png)
Abstract
Description
Claims
Application Information
![application no application](https://static-eureka.patsnap.com/ssr/23.2.0/_nuxt/application.06fe782c.png)
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com