Convolutional neural network calculation optimization method and device, computer device and medium
A convolutional neural network and optimization method technology, applied in neural learning methods, biological neural network models, neural architectures, etc., can solve the problem of poor acceleration performance, increase the computational load of convolutional neural networks, and reduce the efficiency of convolutional neural networks. problems, to achieve the effect of improving computing speed, improving compatibility and performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] figure 1It is a flow chart of a convolutional neural network calculation and optimization method in Embodiment 1 of the present invention. This embodiment is applicable to the case of convolution calculation for a size-optimized convolutional neural network. This method can be provided by the embodiment of the present invention The convolutional neural network calculation and optimization device can be implemented by means of software and / or hardware, and can generally be integrated into electronic devices, such as terminal devices or servers. Such as figure 1 As shown, the method of this embodiment specifically includes:
[0045] S110. Obtain the feature map of the optimized convolutional neural network to be input; wherein, the optimized convolutional neural network is based on the optimal size of the feature map and the optimal size of the convolution kernel of the local device. The convolutional neural network is adjusted, and the size of the input feature map in ...
Embodiment 2
[0067] Figure 2a It is a flow chart of a convolutional neural network calculation and optimization method in Embodiment 2 of the present invention. This embodiment is embodied on the basis of the above-mentioned embodiments, and the steps are based on the feature map corresponding to the optimized convolutional neural network. The relationship between the optimal size and the size of the feature map to be input, determine the matching input adjustment method, specifically: if the size of the feature map to be input is greater than the optimal size of the feature map, determine the input adjustment method is input segmentation processing; the input segmentation processing is used to divide the feature map to be input into a plurality of input feature map units having the same optimal size as the feature map, which are adjacent to each other in the feature map to be input The two input feature map units are not all the same; if the size of the feature map to be input is smaller t...
Embodiment 3
[0132] image 3 It is a flow chart of a convolutional neural network calculation optimization method in Embodiment 3 of the present invention. This embodiment is applicable to the case of convolution calculation for a size-optimized convolutional neural network. This method is applied to the local device In the adapted convolutional neural network, the method can be executed by the convolutional neural network computing optimization device provided by the embodiment of the present invention, which can be implemented in the form of software and / or hardware, and can generally be integrated into electronic equipment, such as , terminal equipment or server, etc. Such as image 3 As shown, the method of this embodiment specifically includes:
[0133] S310. Obtain the feature map to be input through the first node, and determine a matching input adjustment mode based on the relationship between the optimal size of the feature map and the size of the feature map to be input, and ad...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


