Unlock instant, AI-driven research and patent intelligence for your innovation.

Matrix multiplication method and device, medium and computing equipment

A matrix multiplication operation and multiplication operation technology, applied in the computer field, can solve problems such as low multiplication operation efficiency, and achieve the effect of improving efficiency

Active Publication Date: 2021-07-13
网易有道信息技术(北京)有限公司
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, for flat matrix multiplication, which is common in on-device AI, the overhead of reordering the two matrices participating in the multiplication exceeds the benefit, resulting in very inefficient multiplication

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 multiplication method and device, medium and computing equipment
  • Matrix multiplication method and device, medium and computing equipment
  • Matrix multiplication method and device, medium and computing equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] The principles and spirit of the present invention will now be described with reference to several exemplary embodiments. It should be understood that these embodiments are only given for those skilled in the art to better understand and implement the present invention, but not to limit the scope of the present invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.

[0038] According to the embodiments of the present invention, a matrix multiplication operation method, apparatus, medium and computing device are provided.

[0039] In this document, it is to be understood that the terms involved include: "flat matrix". A matrix with a large difference between the number of rows and columns is called a flat matrix. More specifically, when the number of rows differs greatly from the number of columns and the number of rows is less tha...

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 embodiment of the invention provides a matrix multiplication operation method. The method is applied to end-side artificial intelligence equipment, and comprises the following steps: obtaining an M * K matrix and a K * N matrix to be multiplied; determining whether the M * K matrix and the K * N matrix are flat matrixes or not according to the matrix information of the M * K matrix and the K * N matrix; and when one of the M * K matrix and the K * N matrix is a flat matrix, acquiring elements of the flat matrix to participate in matrix multiplication, and directly reading elements of the other matrix to participate in matrix multiplication according to a storage mode of the other matrix of the M * K matrix and the K * N matrix. Under the condition that one flat matrix exists in the two matrixes participating in multiplication, the efficiency of the processor during multiplication is improved by directly reading the elements of the non-flat matrixes in the two matrixes. In addition, the embodiment of the invention further provides a matrix multiplication device, a medium and computing equipment.

Description

technical field [0001] Embodiments of the present invention relate to the field of computer technology, and more particularly, embodiments of the present invention relate to a method, apparatus, medium and computing device for matrix multiplication. Background technique [0002] This section is intended to provide a background or context for the embodiments of the invention that are recited in the claims. The descriptions herein may include concepts that may be explored, but not necessarily concepts that have been previously thought of or explored. Therefore, unless otherwise indicated herein, what is described in this section is not prior art to the description and claims in this application and is not admitted to be prior art by inclusion in this section. [0003] With the development of artificial intelligence, end-side artificial intelligence is the main trend of future artificial intelligence development due to its features such as better protection of user privacy, no...

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 网易有道信息技术(北京)有限公司