Floating-point number multiplication method and computer readable storage medium
A technology of multiplication operation and storage medium, applied in the field of convolutional neural networks, can solve the problems of large loss of precision, difficult to deploy applications, and difficult parallel processing of sparse representation networks, so as to reduce the loss of precision and speed up the convolution operation.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0053] Please refer to Figure 1-2 , Embodiment 1 of the present invention is: a floating-point multiplication method, which can be applied to the floating-point multiplication in the convolutional neural network, and can greatly reduce the precision loss caused by quantization while accelerating the convolution operation . Such as figure 1 shown, including the following steps:
[0054] S1: Establish a first quantization lookup table and a second quantization lookup table. The first quantization lookup table Float2Exp is used to record the association relationship between the floating point number and its corresponding integer set, that is, to find the corresponding integer set according to the floating point number; the second quantization lookup table Exp2Float is used to record the integer and its corresponding floating point number The association relationship of points, which is used to find the corresponding floating point numbers based on integers.
[0055] In this ...
Embodiment 2
[0087] This embodiment is a computer-readable storage medium corresponding to the above-mentioned embodiments, on which a computer program is stored, and when the program is executed by a processor, the following steps are implemented:
[0088] Establish a first quantization lookup table and a second quantization lookup table, the first quantization lookup table is used to record the association relationship between the floating point number and its corresponding integer set, and the second quantization lookup table is used to record the integer and its corresponding floating point number relationship;
[0089] Get the two floating-point numbers to be multiplied;
[0090] Acquiring integer sets corresponding to the two floating-point numbers respectively according to the first quantization lookup table to obtain a first integer set and a second integer set;
[0091] respectively adding each integer in the first integer set to each integer in the second integer set to obtain a...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 

