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

Method, circuit and soc for performing matrix multiplication

A matrix multiplication operation and matrix technology, which is applied in the field of data processing, can solve the problems of address conflict when reading data, low efficiency of matrix multiplication operation, and low data reusability, so as to achieve less logic resources and realize data reusability. , the effect of saving processing resources

Active Publication Date: 2021-01-29
HUAWEI TECH CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present application provides a method, circuit and SOC for performing matrix multiplication operations, which can solve the problems of low operation efficiency of matrix multiplication operations, address conflicts when reading data, and low data reusability in related technologies

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
  • Method, circuit and soc for performing matrix multiplication
  • Method, circuit and soc for performing matrix multiplication
  • Method, circuit and soc for performing matrix multiplication

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0067] In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manner of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0068] Before explaining and describing the embodiment of the present application in detail, the application scenarios involved in the embodiment of the present application will be described.

[0069] At present, artificial intelligence technology is widely used in terminals, edge side, cloud, etc., to realize image recognition, target detection, voice translation and other functions, and artificial intelligence technology is often realized through deep learning network. For deep learning networks, operators that affect performance and have a large amount of calculation, such as convolution and inner product, account for up to 99% of the calculation. These operators can be expanded into matrix multiplication operations. Of course,...

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 application discloses a method for performing matrix multiplication operation, which belongs to the field of data processing. The method includes: obtaining matrix A1, matrix B2 and index matrix; generating n matrix A2 according to index matrix and matrix A1, n matrix A2 and n columns of index matrix are in one-to-one correspondence in order, and t columns of each matrix A2 correspond to The t elements of a column in the corresponding index matrix are in one-to-one correspondence in order, and each column of each matrix A2 is a column indicated in the matrix A1 by an element in the corresponding index matrix; generated according to n matrix A2 and matrix B2 Matrix C, the n columns of matrix C are in one-to-one correspondence with n matrix A2 in sequence, the n columns of matrix C are in one-to-one correspondence with the n columns of matrix B2 in sequence, each column of matrix C is a corresponding matrix A2 and the corresponding The product of a column in matrix B2. This application only needs to read data from the matrix A1 once to complete the matrix multiplication operation, which maximizes the data reusability.

Description

technical field [0001] The present application relates to the field of data processing, in particular to a method, circuit and system on chip (System on Chip, SOC) for performing matrix multiplication. Background technique [0002] Artificial intelligence technology is widely used in terminals, edge side, cloud, etc., to realize image recognition, target detection, voice translation and other functions. Artificial intelligence technology is often realized through deep learning network. For deep learning networks, operators that affect performance and have a large amount of calculation, such as convolution and inner product (inner product), account for up to 99% of the calculation. These operators can be expanded into matrix multiplication Matrix operations. Of course, matrix is ​​a common form of data expression, and the operation of matrix multiplication is often applied in other fields. [0003] At present, when performing matrix multiplication operations, the operation ...

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 Patents(China)
IPC IPC(8): G06F7/523
CPCG06F7/523G06F17/16G06F7/5443G06F7/06
Inventor 何雷骏徐斌王开兴
Owner HUAWEI 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