Fixed-point method and system for floating-point operation
A technology of floating-point calculation and floating-point data, which is applied in neural learning methods, calculations using number system representations, and biological neural network models. It can solve the problems that neural networks cannot meet computing performance requirements, and achieve the effect of improving performance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0056] A fixed-point method for floating-point operations, comprising the following steps:
[0057] S1. Adjust the exponent and significant digit of the adjustable precision floating point data according to the preset numerical range and calculation accuracy requirements, and convert the parameter data in single precision floating point format into adjustable precision floating point data in advance;
[0058] S2. During calculation, convert the adjustable-precision floating-point data into fixed-point data and use it for calculation, and convert the intermediate results generated by the calculation into adjustable-precision floating-point data;
[0059] S3. After all calculations are completed, a final result is generated, and the final result is converted into data in a single-precision floating-point format.
[0060] In a general neural network system, data in single-precision floating-point format is used for calculations. The network model parameter data involved in the ca...
specific example
[0092] In the process of converting single-precision floating-point numbers into adjustable-precision floating-point data, the operation of multiplying the coefficient k is used, so the actual fixed-point operation is performed with k times the original value. When two adjustable-precision floating-point data After a multiplication operation, the actual result is the square of k of the original result. In the FPGA internal data operation process, all values need to be calculated according to a unified multiple, so the result after the multiplication operation needs to be divided by k before subsequent operations. .
[0093] Figure 4 It is a schematic diagram of the fixed-point operation process. The most commonly used operations in the neural network are multiplication and addition. Therefore, taking Y=A×B+C as an example, the data processing and operation process described above are explained. The data are expressed in decimal. It can be seen that after one multiplicati...
PUM
Abstract
Description
Claims
Application Information
- 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