Executable program generation device and method for neural network processor

A neural network algorithm and neural network technology, applied in the field of computer and artificial intelligence, can solve the problems of prone to errors, lack of programming methods for neural network processors, difficult to debug, etc., to achieve the effect of ensuring efficiency

Pending Publication Date: 2019-10-08
SHANGHAI CAMBRICON INFORMATION TECH CO LTD
View PDF9 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the deep neural network has achieved good results in various tasks, a variety of network structures and algorithms emerge in an endless stream, which brings challenges to programming development
For the neural network processor, due to its unique hardware structure and the computationally intensive and memory-intensive characteristics of the neural network algorithm running on it, programming becomes more complicated and difficult.
The neural network processors currently proposed are programmed by handwritten in

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
  • Executable program generation device and method for neural network processor
  • Executable program generation device and method for neural network processor
  • Executable program generation device and method for neural network processor

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0039] In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0040] In this disclosure, because the neural network processor has a special hardware structure, it needs a special programming method to program it, that is, using a programming language to map the language into a source file that can be understood by the generating device. figure 1 This is the process of generating an executable file from a neural network algorithm to a neural network processor in this embodiment of the disclosure. The programming method in the embodiment of the present disclosure includes two steps. First, the concepts in the neural network algorithm are mapped to abstract concepts in the programming language. For example, the neurons and synapses in the neural network are mapped to data in the progra...

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 executable program generation device and method for a neural network processor, and the executable program generation device comprises a source program segmentation module which receives a source file as an input, identifies and extracts the positions of a code segment and a data segment according to the format in the source file, and generates an intermediate file containing the code segment and an intermediate file containing the data segment; a data processing module which is used for inputting an intermediate file containing data, processing placement of the dataand outputting memory allocation information and a data placement mode; and a neural network algorithm mapping module which is used for inputting an intermediate file containing the code segment, mapping a neural network algorithm represented by a block in the code into an algorithm flow composed of macro statements, and mapping the algorithm flow into a hardware-related instruction. The device provides a convenient and fast method for using the neural network processor for a user.

Description

technical field [0001] The present disclosure relates to the field of computers, and further relates to the field of artificial intelligence. Background technique [0002] Deep neural network algorithm is a very popular machine learning algorithm recently, which is widely used in various fields, such as image recognition, speech recognition, natural language processing, etc. Since the deep neural network has achieved good results in various tasks, a variety of network structures and algorithms emerge in an endless stream, which brings challenges to programming development. For the neural network processor, due to its unique hardware structure and the characteristics of intensive calculation and memory access of the neural network algorithm running on it, programming becomes more complicated and difficult. The neural network processors proposed now are programmed by handwritten instructions, which is very time-consuming and labor-intensive, and it is also prone to errors and...

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): G06F8/41G06N3/063
CPCG06F8/41G06F8/42G06N3/063Y02D10/00
Inventor 不公告发明人
Owner SHANGHAI CAMBRICON INFORMATION TECH CO LTD
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