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

Matrix calculation instruction and method therefor

A matrix operation and instruction technology, applied in the field of matrix operation instructions, can solve the problems of insufficient on-chip cache, limited inter-chip communication, and inflexible matrix length, and achieve the effect of improving execution performance.

Inactive Publication Date: 2018-02-16
CAMBRICON TECH CO LTD
View PDF3 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The purpose of this disclosure 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 in the supported matrix length.

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 calculation instruction and method therefor
  • Matrix calculation instruction and method therefor
  • Matrix calculation instruction and method therefor

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064] The disclosure provides a matrix calculation device, including a storage unit, a register unit and a matrix operation unit, the storage unit stores a matrix, and the register unit stores an address of the matrix storage. The matrix operation unit obtains the matrix address in the register unit according to the matrix operation instruction. , and then obtain a corresponding matrix in the storage unit according to the matrix address, and then perform a matrix operation according to the obtained matrix to obtain a matrix operation result. In this disclosure, the matrix data involved in the calculation is temporarily stored in the high-speed temporary memory, so that the matrix operation process can support data of different widths more flexibly and effectively, and improve the execution performance of tasks involving a large number of matrix calculations.

[0065] figure 1 It is a schematic structural diagram of the matrix operation device provided by this disclosure, such...

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 calculation instruction and a method therefor. The matrix calculation instruction comprises an operation code and an operation domain; the operation code is used for identifying different matrix calculation instructions; and the operation domain is used for indicating data information of the matrix calculation instruction, wherein the data information is a registernumber corresponding to an immediate operand of a specific value or data of a specific size. The matrix data participating in calculation is temporarily stored in a scratch pad memory, so that the data different in width can be supported more flexibly and effectively in a matrix calculation process, and the executive performance of a task containing a large amount of matrix calculations is improved.

Description

technical field [0001] The disclosure relates to a matrix operation instruction and a method thereof, which are used for performing matrix operations according to the matrix operation instruction, 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). There...

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/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