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

Tensor calculation code optimization method and device, equipment and medium

An optimization method and code optimization technology, applied in the field of code optimization, can solve problems such as large search space and large time consumption, and achieve the effects of improving operating efficiency, eliminating manpower investment, and good performance

Active Publication Date: 2020-04-07
HANGZHOU WEIMING XINKE TECH CO LTD +1
View PDF7 Cites 8 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Due to the huge search space, bad search methods will lead to very large time consumption (often more than 24 hours), it is challenging to achieve an optimization plan that can be completed in less than 24 hours, and it is necessary to ensure the quality of the optimized results while shortening the time

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
  • Tensor calculation code optimization method and device, equipment and medium
  • Tensor calculation code optimization method and device, equipment and medium
  • Tensor calculation code optimization method and device, equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0039] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0040] It should be noted that, unless otherwise specified, technical terms or scientific terms used in this application shall have the usual meanings understood by those skilled in the art to which this application belongs.

[0041] In addition, the terms "first" and "second", etc. are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "include" and "have", as well as any variations the...

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 tensor calculation code optimization method and device, electronic equipment and a medium. The method comprises the steps that loop characteristics and calculation graph characteristics of tensor calculation codes are analyzed, corresponding loop information and calculation graph information are obtained, an optimization space is generated according to the loop information, the calculation graph information and a preset optimization method, and each space point in the optimization space represents a preset optimization method combination and parameter selection. Basedon a simulated annealing algorithm and a reinforcement learning algorithm, a target space point is searched and determined in the optimization space; and according to a preset optimization method combination and parameter selection corresponding to the target space point, optimized a tensor calculation code so that automatic optimization of the tensor calculation code can be quickly completed, theoperation efficiency of the tensor calculation code is improved, for programming developers, the human input of a development operator can be avoided, relatively good performance can be obtained, cost can be reduced, and the development efficiency can be improved.

Description

technical field [0001] The present application relates to the technical field of code optimization, in particular to a tensor calculation code optimization method and device, an electronic device, and a computer-readable medium. Background technique [0002] Code optimization refers to the process of transforming the program code without changing the running results of the program to improve the running efficiency of the program. Code optimization can be performed at various stages of program compilation. [0003] A tensor is a multidimensional array that is classified hierarchically based on the order of the array elements. For example, you can think of a scalar as a zero-order tensor, a vector as a first-order tensor, a matrix as a second-order tensor, and a data volume as a three-dimensional tensor. rank tensor, and so on. [0004] Tensor computing has important applications in artificial intelligence, scientific computing, image processing and other fields. When optim...

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): G06F8/41
CPCG06F8/443Y02D10/00
Inventor 梁云郑思泽
Owner HANGZHOU WEIMING XINKE 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