Supercharge Your Innovation With Domain-Expert AI Agents!

NPU neural network model deployment method and device based on TVM

A neural network model and technology to be deployed, applied in the field of TVM-based NPU neural network model deployment methods and devices, and can solve problems such as inability to adapt to NPUs of different hardware manufacturers

Pending Publication Date: 2022-07-08
SHENZHEN INTELLIFUSION TECHNOLOGIES CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] This application provides a TVM-based NPU neural network model deployment method and device to solve the defects in the prior art that TVM cannot adapt to NPUs of different hardware manufacturers.

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
  • NPU neural network model deployment method and device based on TVM
  • NPU neural network model deployment method and device based on TVM
  • NPU neural network model deployment method and device based on TVM

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0065] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.

[0066] In addition, the terms "first", "second", etc. are used for descriptive purposes only, and should not be construed as indicating or implying relative importance or implying the number of indicated technical features. In the description of the following embodiments, the meaning of "plurality" is two or more, unless otherwise...

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 TVM-based NPU neural network model deployment method and apparatus. The method comprises the steps of obtaining a to-be-deployed neural network model and hardware attribute information of a current NPU; according to calculation logic of the neural network model, determining a convolution operator to be deployed to the current NPU; determining the optimal parameter configuration of each convolution operator in the current NPU according to the hardware attribute information of the current NPU and the parameter information of each convolution operator; according to the optimal parameter configuration and the hardware attribute information of the current NPU, adjusting the data layout and the convolution weight of the tir layer, and modifying the parameters of the relay layer to obtain a target TVM adaptive to the current NPU; and based on the target TVM, generating a deployment file of the neural network model suitable for the current NPU. Corresponding parameter adjustment is carried out on the tir layer and the relay layer of the TVM, so that the obtained target TVM can adapt to the NPU.

Description

Technical field [0001] The present application relates to the field of computer technology, and in particular to a TVM-based NPU neural network model deployment method and device. Background technique [0002] With the continuous development of artificial intelligence and big data, more and more dedicated AI chips have emerged. Among them, the embedded neural network processor (Neural-network Processing Unit, referred to as: NPU) adopts a data-driven parallel computing architecture. Good at processing massive multimedia data such as videos and images. [0003] In the existing technology, in order to simply, quickly and efficiently deploy deep learning models under different frameworks to respective NPU hardware platforms, hardware manufacturers or IP vendors need to develop an inference software stack that integrates model optimization, code generation and compilation. As an open source and general machine learning compilation framework, TVM has become the first choice of m...

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
IPC IPC(8): G06F8/60G06F8/41G06N3/04G06N3/08G06N3/063
CPCG06F8/60G06F8/41G06N3/08G06N3/063G06N3/045Y02T10/40
Inventor 贾丰荣蔡万伟陈宁
Owner SHENZHEN INTELLIFUSION TECHNOLOGIES CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More