Unlock instant, AI-driven research and patent intelligence for your innovation.

Convolution operation method and device for two-dimensional data

A two-dimensional data and convolution operation technology, applied in the field of convolutional neural network operations, can solve problems such as increased energy consumption, increased calculation delay of redundant input data, increased cumulative logic complexity, etc., to achieve simple program mapping, The effect of high computing flexibility

Active Publication Date: 2021-06-08
PLA STRATEGIC SUPPORT FORCE INFORMATION ENG UNIV PLA SSF IEU +1
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the application of the convolution operation accelerator based on the shift register chain, if the length of the convolution kernel is greater than the maximum length and width supported by the convolution operation unit, the convolution kernel needs to be split, and the input data is also the original two-dimensional data. Subsets, traditional DMA cannot move sub-two-dimensional data blocks in the original two-dimensional data memory, and can only input the original two-dimensional data and perform operations on the split sub-convolution kernels, resulting in the removal of redundant input data, The calculation delay increases and the energy consumption increases. The resulting redundant calculation results increase the cumulative logic complexity of the final calculation results.

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
  • Convolution operation method and device for two-dimensional data
  • Convolution operation method and device for two-dimensional data
  • Convolution operation method and device for two-dimensional data

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0061] Such as Figure 4 As shown, this embodiment provides a method for convolution operation of two-dimensional data, the method includes the following steps:

[0062] Step S401, splitting the convolution kernel into multiple sub-convolution kernels with a set width.

[0063] Wherein, the setting width can be set according to the width of the shift register chain and the width of the two-dimensional convolution calculation unit. For example, the width of the convolution kernel is 5x5, while the width of the shift register chain and the two-dimensional convolution calculation unit generally adopt a fixed width. If the two-dimensional convolution calculation unit supports 3x3 convolution operations, the width of the shift register chain It is also 3, then the 5x5 convolution kernel needs to be expanded to a 6x6 convolution kernel first, and then split into four 3x3 sub-convolution kernels for convolution operations.

[0064] Step S402: Divide the two-dimensional data block t...

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 belongs to the technical field of convolutional neural network operations, and in particular relates to a convolution operation method and device for two-dimensional data. The row deviation address between the sub-two-dimensional data block and the original two-dimensional data block can complete the access of the sub-two-dimensional data block of any length two-dimensional data block, and perform convolution operation on the sub-two-dimensional data block and the corresponding sub-convolution kernel Obtain the convolution operation results of the sub-two-dimensional data blocks, and accumulate the convolution operation results of all sub-two-dimensional data blocks to obtain the convolution operation results of the original two-dimensional data blocks, so that the convolution operation accelerator based on the shift register chain Realize the convolution operation of any length and width convolution kernel, with high operation flexibility and simple program mapping.

Description

technical field [0001] The invention belongs to the technical field of convolutional neural network operations, and in particular relates to a convolutional operation method and device for two-dimensional data. Background technique [0002] In recent years, Convolutional Neural Network (CNN) has made major breakthroughs and progress in deep learning and artificial intelligence. In the actual operation process of CNN, it is generally calculated by convolution of two-dimensional input featuremap (feature map) As a basis, and then accumulate each input feature map and the convolution result of the corresponding two-dimensional convolution kernel to obtain an output feature map. The method of realizing CNN operation by a two-dimensional convolution operation accelerator based on a shift register chain can greatly reduce the pressure of memory access and maximize data reuse. The two-dimensional convolution operation accelerator realizes the windowing operation of input data thro...

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): G06N3/04
CPCG06N3/045
Inventor 陈艇刘勤让沈剑良李沛杰刘冬培宋克吕平杨镇西张文建汪欣
Owner PLA STRATEGIC SUPPORT FORCE INFORMATION ENG UNIV PLA SSF IEU