Model conversion method and system 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, achieve the effect of reducing execution cost, optimizing computing performance, and reducing the reading and writing process

Active Publication Date: 2019-12-03
INST OF COMPUTING TECH CHINESE ACAD OF SCI
View PDF7 Cites 4 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
  • Model conversion method and system between deep learning frameworks based on minimum execution cost
  • Model conversion method and system between deep learning frameworks based on minimum execution cost
  • Model conversion method and system between deep learning frameworks based on minimum execution cost

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042]When the inventor was conducting research on how to obtain the optimal model by converting the deep learning model between different frameworks, he found that the defect in the prior art was that only the conversion element of a single independent operation was considered, and the fusion of multiple independent operations into One operation, and it is caused by judging which execution cost is the lowest in multiple conversion methods between fusionable and non-fusible. The inventors have found through the calculation and research of multiple model operation independent conversion and operation fusion conversion cost methods that the solution to this defect can be By defining the conversion rule table and matching rules, the calculation cost of each conversion is obtained, and the conversion of the optimal model structure is realized by the method of dynamic programming. Compared with the existing method, the model conversion method of the present invention can obtain a mo...

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 model conversion method and system between deep learning frameworks based on minimum execution cost, and the method comprises the steps: adding an operation conversion cost value on the basis of the original technology, considering the fusion condition of a plurality of independent operations, and supplementing fusion mapping. The specific implementation of the model is embodied in the operation conversion of forming the model, and in the stage, a converted model structure with the lowest execution cost is obtained through a dynamic programming algorithm according to amodel conversion mapping table. According to the method, the read-write process of the intermediate results of a plurality of operation rooms can be reduced through operation fusion, so that the calculation performance and the storage space are optimized, and the execution cost of the converted model is reduced. Meanwhile, when multiple fusion options exist, a model conversion method with the minimum execution cost is obtained through a dynamic programming algorithm.

Description

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

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): 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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products