Unlock instant, AI-driven research and patent intelligence for your innovation.

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.

Active Publication Date: 2021-01-05
FUJIAN TIANQUAN EDUCATION TECH LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the accuracy loss of the binary quantization method is large, and the sparse representation network is difficult to process in parallel, and it is difficult to deploy to mobile terminal applications such as mobile phones.
With the popularization of images and videos in mobile devices, there is an urgent need for high-performance target detection and recognition methods that can be deployed on cheap computing platforms to meet the needs of different application scenarios, but currently there is a lack of effective methods for mobile devices. Convolution Acceleration Scheme

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Floating-point number multiplication method and computer readable storage medium
  • Floating-point number multiplication method and computer readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a floating-point number multiplication method and a computer readable storage medium, the method comprises: establishing a first quantization lookup table and a second quantization lookup table, the first quantization lookup table being used for recording an association relationship between a floating-point number and a corresponding integer set, and the second quantizationlookup table is used for recording an association relationship between the integer and the corresponding floating-point number; obtaining two floating-point numbers to be multiplied; respectively obtaining integer sets corresponding to the two floating-point numbers according to the first quantization lookup table to obtain a first integer set and a second integer set; respectively adding each integer in the first integer set and each integer in the second integer set to obtain a third integer set; obtaining floating-point numbers corresponding to integers in the third integer set according to the second quantization lookup table; and adding the floating-point numbers corresponding to the integers to obtain a multiplication result of the two floating-point numbers to be multiplied. According to the method, the convolution operation is accelerated, and the precision loss caused by quantization is greatly reduced.

Description

technical field [0001] The invention relates to the technical field of convolutional neural networks, in particular to a method for multiplying floating-point numbers and a computer-readable storage medium. Background technique [0002] Convolutional neural network is currently the mainstream technology in the field of computer vision, and can be widely used in target detection, recognition, super-resolution, 3D reconstruction and other fields. Since the convolutional neural network model usually has the characteristics of a large number of parameters and a large amount of floating-point operations, most of the current methods require a high-performance computing platform to realize the parallel operation of convolution. To this end, researchers have gradually begun to focus on the acceleration of convolution operations, as well as quantization operations. For example, convolutional networks based on binary quantization, or sparsely represented networks, etc. However, the ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F7/57G06F7/523G06F7/552
CPCG06F7/57G06F7/523G06F7/552
Inventor 刘德建蔡国榕关胤洪初阳苏松志郭玉湖
Owner FUJIAN TIANQUAN EDUCATION TECH LTD