Convolution operation based matrix conversion method and apparatus, and medium
A technology of convolution operation and transformation device, applied in the field of convolutional neural network, can solve the problems of multiple memory resources, low memory use efficiency, large scale, etc., to reduce the occupation of memory resources, reduce the overall number of repetitions, and improve the use efficiency Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] figure 2 It is a flow chart of a convolution operation-based matrix conversion method provided by an embodiment of the present invention. Please refer to figure 1 , the specific steps of the matrix transformation method based on convolution operation include:
[0045] Step S10: Obtain the original feature matrix and convolution kernel matrix.
[0046] It should be noted that both the original feature matrix and the convolution kernel matrix are parameters required for convolution operations. Since the convolution operation is often used in the convolutional neural network to analyze the image, the original feature matrix can be converted from the image, and the clarity of the image directly determines the number of rows and columns of the original feature matrix.
[0047] Step S11: Count the total number of rows of the original feature matrix, the number of kernel rows of the convolution kernel matrix, and the number of kernel columns of the convolution kernel matri...
Embodiment 2
[0054] On the basis of the foregoing embodiments, as a preferred implementation manner, the target number of rows is equal to the total number of rows.
[0055] The following diagrams are used to illustrate, please refer to Figure 4 .
[0056] Figure 4 It is a schematic diagram of another expansion of the original feature matrix in this scheme. Such as Figure 4 As shown in , the convolution operation is performed by using the 5*5 original feature matrix and the 3*3 convolution kernel matrix as an example. A in the figure is the original feature matrix, B is the convolution kernel matrix, and C is the result feature matrix. Among them, the result feature matrix is formed by expanding and combining the target matrices. The specific expansion method of the target matrix is the same as the existing expansion method, and it can also be reflected according to the labels of the elements in the matrix in the figure, so I will not repeat them here. .
[0057] image 3 and...
Embodiment 3
[0077] The embodiment of a matrix conversion method based on convolution operation has been described in detail above, and the present invention also provides a matrix conversion device based on convolution operation, because the embodiment of the device part and the embodiment of the method part Corresponding to each other, so for the embodiment of the device part, please refer to the description of the embodiment of the method part, and details will not be repeated here.
[0078] Figure 6 A structural diagram of a matrix conversion device based on convolution operation provided by an embodiment of the present invention. Such as Figure 6 As shown, the matrix conversion device based on convolution operation provided by the embodiment of the present invention includes:
[0079] The matrix acquisition module 10 is used to acquire the original feature matrix and the convolution kernel matrix.
[0080] The statistical module 11 is used to count the total number of rows of the...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


