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

Method for quickly deploying convolutional neural network on FPGA (Field Programmable Gate Array) 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: 2020-05-05
BEIHANG UNIV
View PDF5 Cites 11 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
  • Method for quickly deploying convolutional neural network on FPGA (Field Programmable Gate Array) based on Pytorch framework
  • Method for quickly deploying convolutional neural network on FPGA (Field Programmable Gate Array) based on Pytorch framework
  • Method for quickly deploying convolutional neural network on FPGA (Field Programmable Gate Array) 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 (Field Programmable Gate Array) based on a Pytorch framework. The method comprises the steps of establishing a model quick mapping mechanism, constructing a reconfigurable computing unit and carrying out self-adaptive processing flow based on rule mapping; when a convolutional neural network is definedunder a Pytorch framework, establishing a model fast mapping mechanism through construction of naming rules; making optimization strategy calculation under a hardware resource constraint condition, establishing a template library based on a hardware optimization strategy and creating a reconfigurable calculation unit i at an FPGA end; and finally, decomposing the complex network model file at the FPGA end in the self-adaptive processing flow based on rule mapping, abstracting the network into a directed acyclic graph, and finally generating a neural network accelerator to realize an integrated flow from the model file of the Pytorch framework to FPGA deployment. The directed acyclic graph of the network can be established through a model fast mapping mechanism, the FPGA deployment process can be completed only by inputting hardware design variables in the FPGA deployment process, and the method is simple and high in universality.

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 Applications(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