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.
CN107704433AInactive Publication Date: 2018-02-16CAMBRICON TECH CO LTD

Patent Information

Authority / Receiving Office
CN Β· China
Patent Type
Applications(China)
Current Assignee / Owner
CAMBRICON TECH CO LTD
Publication Date
2018-02-16
Estimated Expiration
Not applicable Β· inactive patent

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

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.
Need to check novelty before this filing date? Find Prior Art

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