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

Matrix calculating device

A matrix operation and matrix technology, applied in the field of matrix operation devices, can solve the problems of limited inter-chip communication, insufficient on-chip cache, and insufficient flexibility of matrix length, etc., and achieve the effects of flexible matrix length, improved execution performance, and convenient use

Pending Publication Date: 2017-07-28
CAMBRICON TECH CO LTD
View PDF0 Cites 51 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The purpose of the present invention is to provide a matrix operation device to solve the problems existing in the prior art such as limited inter-chip communication, insufficient on-chip cache, and insufficient flexibility of supported matrix lengths.

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
  • Matrix calculating device
  • Matrix calculating device
  • Matrix calculating device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment approach

[0027] According to an embodiment of the present invention, the matrix operation device further includes: an instruction cache unit, configured to store matrix operation instructions to be executed. During the execution of the instruction, it is also cached in the instruction cache unit. After an instruction is executed, if the instruction is also the earliest instruction among the uncommitted instructions in the instruction cache unit, the instruction will be back submitted. Once submitted , the operation performed by this command will not undo the changes to the device status. In one implementation, the instruction cache unit may be a reorder cache.

[0028] According to an embodiment of the present invention, the matrix operation device further includes: an instruction processing unit, configured to obtain a matrix operation instruction from the instruction buffer unit, process the matrix operation instruction, and provide it to the matrix operation unit. Among them, the i...

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 provides a matrix calculating device comprising a memory cell, a register unit and a matrix operation unit. Matrixes are stored in the memory cell, addresses stored by the matrixes are stored in the register unit, and the matrix operation unit obtains a matrix address in the register unit in dependence on a matrix operation instruction, and then obtains a corresponding matrix in the memory cell in dependence on the matrix address, and carries out matrix operation in dependence on the obtained matrix to obtain a matrix operation result. According to the invention, matrix data participating in calculation is temporarily stored in a scratchpad memory, data in different widths can be supported flexibly and effectively during the matrix operation process, and the execution performance of tasks including a lot of matrix calculations is improved.

Description

technical field [0001] The invention relates to a matrix operation device, which is used for performing matrix operations according to matrix operation instructions, and can well solve the problem that more and more algorithms in the current computer field include a large number of matrix operations. Background technique [0002] At present, more and more algorithms in the computer field involve matrix operations. Taking artificial neural network algorithms as an example, various neural network algorithms contain a large number of matrix operations. In the neural network, the operation expression of the output neuron is y=f(wx+b), where w is a matrix, x and b are matrices, and the process of calculating the output matrix y is to multiply the matrix w by the matrix x, and add Matrix b, and then perform an activation function operation on the obtained matrix (that is, perform an activation function operation on each element in the matrix). Therefore, matrix operation has beco...

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): G06F17/16
CPCG06F17/16
Inventor 陈云霁张潇刘少礼陈天石
Owner CAMBRICON TECH CO LTD
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