Calculation module and method

A technology of computing modules and computing instructions, which is applied in the field of communication, can solve the problems of high computing overhead, the inability to realize more than two types of operations, and the inability to realize variable-scale sparse vector or sparse matrix operations, etc.

Inactive Publication Date: 2018-08-10
SHANGHAI CAMBRICON INFORMATION TECH CO LTD
View PDF0 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the existing vector operation instructions cannot support the operations of sparse vectors or sparse matrices in sparse neural networks, let alone the operations of variable-scale sparse vectors or sparse matrices, and the current vector operation instructions can only implement one type of operation. For example, one vector instruction can only implement one operation of multiplication and addition, but one vector instruction cannot implement more than two operations, so the existing vector operations have high computational overhead and high energy consumption.

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
  • Calculation module and method
  • Calculation module and method
  • Calculation module and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0074] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0075] The terms "first", "second", "third" and "fourth" in the description and claims of the present invention and the drawings are used to distinguish different objects, rather than to describe a specific order . Furthermore, the terms "comprising" and "having", as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not lim...

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 calculation module. The calculation module comprises a memory, a register unit, a dependency relationship processing unit, a calculation unit and a control unit; the memory stores vectors; the register unit stores an expansion instruction; the control unit obtains the expansion instruction, analyzes the expansion instruction to obtain a first calculation instruction and asecond calculation instruction, determines an executive sequence of the first calculation instruction and the second calculation instruction according to the first calculation instruction and the second calculation instruction, and reads an input vector of the first calculation instruction from the memory; an index processing unit finishes operations related to index transformation, index-based data screening and the like; and the calculation unit finishes transformation of an index representation mode of input data of the first calculation instruction, screens the data according to indexes, and executes the first calculation instruction and the second calculation instruction for the input data of the first calculation instruction according to the executive sequence to obtain a result of the expansion instruction. The technical scheme provided by the calculation module has the advantages of low power consumption and low calculation expense.

Description

technical field [0001] The invention relates to the field of communication technology, in particular to an operation module and a method. Background technique [0002] In modern general-purpose and special-purpose processors, more and more calculation instructions (such as vector instructions) are introduced to perform operations. Vector instructions are instructions that enable the processor to perform vector or matrix operations, such as addition and subtraction of vectors, inner product of vectors, matrix multiplication, and matrix convolution. In the vector instruction, at least one input is a vector or a matrix, or the operation result is a vector or a matrix. Vector instructions can perform parallel calculations by calling the vector processing components inside the processor to improve the operation speed. In the existing vector instructions, the vector or matrix in its operand or result is generally fixed in size. For example, the vector instruction in the vector e...

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): G06F9/30G06F17/16
CPCG06F9/30007G06F9/3001G06F9/30036G06F9/30181G06F17/16G06N3/063G06N3/045G06F9/3853G06F9/30145Y02D10/00
Inventor 王秉睿周聖元张尧
Owner SHANGHAI CAMBRICON INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products