Hardware implementation device and method for activation function

A technology of hardware implementation and activation function, applied in the directions of physical implementation, digital data processing components, and computation represented by the number system. The effect of layout and wiring, circuit layout and wiring is convenient

Pending Publication Date: 2020-10-30
南京宁麒智能计算芯片研究院有限公司
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Aiming at the problem in the prior art that it is difficult to balance high performance and hardware resources in the traditional hardware implementation of activation functions, the present invention provides a hardware implementation device and method for activation functions, which can better balance hardware performance and hardware resources The use of less hardware resources can ensure the higher performance of the hardware

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
  • Hardware implementation device and method for activation function
  • Hardware implementation device and method for activation function
  • Hardware implementation device and method for activation function

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0031] figure 1 Shown is a schematic structural diagram of the "S" type activation function hardware device based on carry-save addition and CORDIC algorithm in this embodiment. The hardware device of this embodiment includes an e index calculation module and a CORDIC division module, and the e index calculation module is connected with the CORDIC division module. The hardware system also includes a top-level control module, which is responsible for connecting the e index calculation module and the CORDIC division module. Both the calculation module and the CORDIC division module are connected to the clock signal clk, and the e index calculation module is also connected to the selection signal sel. The input signal first passes through the e index calculation module, and then adds the calculated value of the e index calculation module to 1 in an adder, and then passes this value through the CORDIC division module as the input value of the CORDIC division module; the CORDIC div...

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 hardware implementation device and method of an activation function, and belongs to the technical field of hardware implementation of function calculation. Aiming at the problem that in the prior art, high performance and hardware resources are difficult to balance when the hardware of a conventional method achieves an activation function, the device comprises an e-exponential calculation module and a CORDIC division module; an input signal calculates an e-exponential e-x or an e-exponential e2x in the e-exponential calculation module through a small index lookup table with 2 as the base and shifting and additive operation. Based on carry-save addition, an adder achieves the calculation function like I1 + I2-I3; based on a CORDIC algorithm, a CORDIC division module calculates a division function result shown in the specification through multiple times of iteration. The circuit structure is simple, no complex control logic exists, circuit layout and wiring areconvenient, the calculation precision is high, sigmoid and tanh activation function calculation in any input range is supported during calculation, and the problem that a traditional hardware implementation method cannot balance performance and hardware resources is solved.

Description

technical field [0001] The present invention relates to the technical field of hardware implementation of function computing, and more specifically, to a hardware implementation device and method for an activation function. Background technique [0002] With the rapid development of artificial intelligence and other fields, neural networks have become a research hotspot in recent years. Artificial neural network is a mathematical model that uses a structure similar to that of brain synaptic connections for information processing. Its main task is to build a practical artificial neural network model based on the principles of biological neural networks and the needs of practical applications, and to design corresponding Learning algorithms simulate certain intelligent activities of the human brain, and then implement them technically to solve practical problems. [0003] As an important part of the neural network algorithm, the hardware implementation of the activation funct...

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): G06N3/04G06N3/063G06F7/50G06F7/552
CPCG06N3/063G06F7/50G06F7/552G06N3/048
Inventor 李丽蒋林傅玉祥陈辉何书专李剑斌陈健
Owner 南京宁麒智能计算芯片研究院有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products