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

Rapid deployment method of convolutional neural network on FPGA based on pytorch framework

A technology of convolutional neural network and neural network model, which is applied in the field of rapid deployment of convolutional neural network on FPGA, can solve problems such as inability to convert, and achieve the effect of reducing human participation.

Active Publication Date: 2021-07-20
BEIHANG UNIV
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Since the Pytorch model does not contain network topology information, the model trained in Pytorch needs to be converted into a caffe model through tools such as onnx before it can be deployed. However, the onnx tool only supports the regular caffe layer. If it is a custom layer in Pytorch, then unable to convert

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
  • Rapid deployment method of convolutional neural network on FPGA based on pytorch framework
  • Rapid deployment method of convolutional neural network on FPGA based on pytorch framework
  • Rapid deployment method of convolutional neural network on FPGA based on pytorch framework

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0032] 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 only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0033] See attached figure 1 , is the flow chart of the rapid deployment method of the convolutional neural network on the FPGA based on the Pytorch framework. The design and implementation of the rapid deployment method of the convolutional neural network on the FPGA of the present invention are mainly divided into three parts: establishing a fast mapping mechanism for the model; Reconfiguration computing unit construction and adaptive processing flow based o...

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 discloses a method for quickly deploying a convolutional neural network on an FPGA based on a Pytorch framework, including establishing a model rapid mapping mechanism, reconfigurable computing unit construction, and an adaptive processing flow based on rule mapping. When defining a convolutional neural network under the Pytorch framework, a fast mapping mechanism for the model is established through the construction of naming rules. The optimization strategy calculation is performed under the constraints of hardware resources, and the template library based on the hardware optimization strategy is established, and the reconfigurable computing unit is constructed on the FPGA side. Finally, in the adaptive processing flow based on rule mapping, the complex network model file is decomposed on the FPGA side, the network is abstracted into a directed acyclic graph, and finally a neural network accelerator is generated to realize the integration from the model file of the Pytorch framework to FPGA deployment. process. This method can establish a directed acyclic graph of the network through the model rapid mapping mechanism. In the FPGA deployment process, only the hardware design variables need to be input to complete the FPGA deployment process. The method is simple and has strong versatility.

Description

technical field [0001] The invention belongs to the technical field of convolutional neural network hardware acceleration, and relates to a rapid deployment method of a convolutional neural network based on a Pytorch framework on an FPGA. Background technique [0002] In recent years, convolutional neural networks have been widely used in natural language processing, computer vision and other fields. A neural network generally includes two stages: training and testing. Training is the process of extracting model parameters from training data and neural network models (ResNet, RNN, etc.) using CPU or GPU. The test is to run the test data with the trained model (neural network model + model parameters) and check the results. And caffe, Pytorch, and tensorflow are to unify and abstract the link data involved in the training process to form a usable framework. [0003] At present, the industry deploys deep learning models on FPGAs mostly by analyzing the caffe prototxt to obt...

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): G06F8/60G06N3/04G06N3/067
CPCG06F8/60G06N3/067G06N3/045
Inventor 姜宏旭韩琪刘晓戬李波张永华林珂玉
Owner BEIHANG UNIV
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