Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Approximate calculation device for sigmoid function

A technology of approximate calculation and function, applied in the field of VLSI design, it can solve the problems of high hardware resource overhead and long delay, and achieve the effect of saving area, reducing delay and wide application prospects.

Active Publication Date: 2020-02-25
NANJING UNIV
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to overcome the shortcomings of large hardware resource overhead and long delay required by the existing sigmoid function approximation method, and provide a high-speed, low power consumption and area-saving computing device for the sigmoid function

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
  • Approximate calculation device for sigmoid function
  • Approximate calculation device for sigmoid function
  • Approximate calculation device for sigmoid function

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] The solution of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0018] In this embodiment, the input interval (-8, 8) of the sigmoid is segmented at equal intervals, and the segment length is ln2; in different input intervals, the following formula is used to approximate the sigmoid function:

[0019]

[0020] Wherein, δ(x) represents a sigmoid function, x is an independent variable of the function, k is an integer, and 0

[0021] The schematic diagram of the hardware architecture embodiment of the present invention is as follows figure 1 As shown, the range of the input variable x is in the interval of (-8, 8), ...

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 an approximate calculation device for a sigmoid function. The approximate calculation device comprises a negative number input conversion unit, a constant multiplication unit,a shift unit, a special value generation unit, a carry-save adder and a negative number result conversion unit. The negative number input conversion unit is used for taking an absolute value of an input negative value x and outputting a binary source code of the absolute value; the constant multiplication unit calculates a value of 1.4375 * x and outputs an integral part k and a decimal part p ofan operation result; the shifting unit is used for shifting the input p; the special value generation unit is used for generating an approximate value lambda = sigmoid (kln2); the carry-save adder isused for realizing addition of three numbers; and the negative result conversion unit realizes a conversion function of a corresponding result when the input x is a negative number. According to the device, approximate calculation of the sigmoid function can be achieved, and while high approximate precision is kept, operation delay and power consumption are greatly reduced, and area expenditure isreduced.

Description

technical field [0001] The invention belongs to the field of VLSI design, in particular to an approximate calculation device for sigmoid function. Background technique [0002] The Sigmoid function is a nonlinear function widely used in digital signal processing and deep neural networks. Due to the non-linear characteristics of the Sigmoid function, it is difficult to implement it quickly on hardware and maintain high fitting accuracy. There have been many sigmoid function fitting methods in the past, but these methods require more hardware resource overhead, which is not conducive to hardware implementation. [0003] Currently, approximation methods for piecewise linear fitting are widely used in FPGA or VLSI implementations. Although this method can have high fitting accuracy, it still needs to use a lookup table to store the parameters of the piecewise function, and needs to use a multiplier with high delay and large area. Therefore, this method not only requires more ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/17
CPCG06F17/17Y02D10/00
Inventor 潘红兵秦子迪邱禹欧王宇宣
Owner NANJING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products