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

Method and system for model conversion between deep learning frameworks based on minimum execution cost

A deep learning and model conversion technology, applied in the field of deep learning, can solve the problem of high model execution cost, reduce the execution cost, reduce the reading and writing process, and optimize the computing performance and storage space.

Active Publication Date: 2022-07-12
INST OF COMPUTING TECH CHINESE ACAD OF SCI
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The purpose of the present invention is to solve the problem in the prior art that the deep learning model is converted between different frameworks, and the execution cost of the converted model is too high, and a minimum execution cost-based method that can generate a minimum execution cost model is proposed Method and system for model conversion between deep learning frameworks

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 and system for model conversion between deep learning frameworks based on minimum execution cost
  • Method and system for model conversion between deep learning frameworks based on minimum execution cost
  • Method and system for model conversion between deep learning frameworks based on minimum execution cost

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042]When the inventors conducted research on how to obtain the optimal model by converting deep learning models between different frameworks, they found that the defect in the prior art is that only the conversion element of a single independent operation is considered, and the fusion of multiple independent operations into a single independent operation is not considered. One operation, and it is caused by judging which of the various conversion methods has the lowest execution cost between fusion and non-fusion. The inventor has found through the calculation and research of the cost methods of independent conversion of various model operations and operation fusion conversion, and solving this defect can be solved. By defining the transformation rule table and matching the rules, the calculation cost of each transformation is obtained, and the transformation of the optimal model structure is realized by the method of dynamic programming. Compared with the existing method, th...

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 present invention provides a method and system for model conversion between deep learning frameworks based on the minimum execution cost, including: on the basis of the original technology, adding an operation conversion cost value, while considering the situation that multiple independent operations can be fused, and supplementing the fusion mapping; The concrete realization of the model is reflected in the operation transformation of the model. At this stage, according to the model transformation mapping table, the transformed model structure with the lowest execution cost is obtained through the dynamic programming algorithm. The invention can reduce the reading and writing process of intermediate results between multiple operations through operation fusion, thereby optimizing computing performance and storage space, and further reducing the execution cost of the converted model. At the same time, when there are multiple fusion options, the model conversion method with the smallest execution cost is obtained through the dynamic programming algorithm.

Description

technical field [0001] The present invention relates to the field of deep learning, in particular to a method and system for model conversion between deep learning frameworks based on minimum execution cost, and is specifically applied to model conversion of different frameworks. Background technique [0002] Current deep learning models can be implemented in different frameworks. After a model is trained on framework A, users can convert it to a model under framework B so that it can be directly inferred under framework B without retraining the model. like figure 1 As shown, each model Model consists of a variety of different operations. In general, each operation OP (operator) has operation type, input (support zero to multiple), output (support 1 to multiple), attributes, etc. content. like figure 2 As shown, each operation is associated with its respective input and output, figure 2 The model structure contains 5 OPs, namely Conv, SpatialBN, Relu, AveragePool and ...

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): G06F16/2455G06N20/00
CPCG06F16/24564G06N20/00
Inventor 何文婷程学旗钟巧灵张志斌郭嘉丰赵鹏
Owner INST OF COMPUTING TECH CHINESE ACAD OF SCI
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