GPU-based method and device for calculating binary neural network convolution

A binary neural network and convolution technology, applied in the field of computer vision, can solve the problem of high calculation and memory overhead, and achieve the effect of reducing memory consumption and improving calculation speed

Active Publication Date: 2017-05-31
BEIJING KUANGSHI TECH +1
View PDF5 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Generally speaking, the convolution operation is the part with the largest amount of calculation and the most memory overhead in a deep learning model. For example, the convolution operation in the current CNN will take up more than 70% of the calculation time, so it is necessary to optimize the convolution operation of

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
  • GPU-based method and device for calculating binary neural network convolution
  • GPU-based method and device for calculating binary neural network convolution
  • GPU-based method and device for calculating binary neural network convolution

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0038] In order to make the objects, technical solutions and advantages of the present invention more apparent, exemplary embodiments according to the present invention will be described in detail below with reference to the accompanying drawings. Apparently, the described embodiments are only some embodiments of the present invention, rather than all embodiments of the present invention, and it should be understood that the present invention is not limited by the exemplary embodiments described here. Based on the embodiments of the present invention described in the present invention, all other embodiments obtained by those skilled in the art without creative effort shall fall within the protection scope of the present invention.

[0039] With the development of graphics cards, GPUs have become more and more powerful, and GPUs are optimized for displaying images. It has surpassed the general-purpose central processing unit (Central Processing Unit, referred to as CPU) in comp...

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

Embodiments of the invention provide a GPU-based method and device for calculating binary neural network convolution. The method comprises the following steps of obtaining a calculation request for executing convolution operation according to a binary neural network; starting at least one thread block on a GPU according to the calculation request, wherein each thread block comprises a plurality of threads; determining a calculation area range of each thread block on the basis of a two-stage blocking strategy, and determining calculation area ranges of the threads included by each thread block; executing a calculation process by each thread in each thread block of the at least one thread block so as to obtain calculation results; and determining output results of corresponding thread blocks according to the calculation result of each thread in each thread block. According to the method, the two-stage blocking strategy on the basis of the GPU thread block is designed, and the access characteristics of the GPU are fully utilized, so that binary neural network convolution calculation can be realized on GPU equipment, the calculation speed is enhanced and the internal memory consumption is decreased.

Description

technical field [0001] The present invention relates to the field of computer vision, and more specifically relates to a GPU-based method and device for calculating binary neural network convolution. Background technique [0002] The concept of deep learning originated from the research of artificial neural networks. A multi-layer perceptron with multiple hidden layers is a deep learning structure. Deep learning combines low-level features to form more abstract high-level representation attribute categories or features to discover distributed feature representations of data. In computer vision and related fields, emerging deep learning methods have made great progress over traditional methods of the past. [0003] Convolutional neural networks (CNNs for short) is a machine learning model under deep supervised learning, which is the core operation of deep learning. It performs a convolution operation between the convolution kernel (Kernel) and the original image input to ob...

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): G06N3/063G06F9/38G06F9/305G06F9/308
CPCG06F9/30018G06F9/30029G06F9/3885G06N3/063
Inventor 魏铭
Owner BEIJING KUANGSHI TECH
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