Processor, logic chip and method for binarized convolution neural network
AssigneeUnited Microelectronics Centre (Hong Kong) Limited
InventorsYuan LEI, Peng LUO
Life of this patent
Estimating the term…
Abstract
Examples of the present disclosure include a processor for implementing a binarized convolutional neural network (BCNN). The processor includes a shared logic module that is capable of performing both a binarized convolution operation and a down-sampling operation. The shared logic module is switchable between a convolution mode and a down-sampling mode by adjusting parameters of the shared logic module. In some examples the processor may be logic chip.
Claims20
A processor for implementing a binarized convolutional neural network (BCNN) comprising a plurality of layers including a binarized convolutional layer and a down-sampling layer;
- wherein the binarized convolution layer and the down-sampling layer are both executable by a shared logical module of the processor, the shared logical module comprising:
- an augmentation unit to augment a feature map input to the shared logical module, based on an augmentation parameter;
- a binarized convolution unit to perform a binarized convolution operation on the feature map input to the shared logical module, based on a convolution parameter;
- and
- a combining unit to combine an output of the augmentation unit with an output of the binarized convolution unit;
- wherein the shared logic module is switchable between a convolution mode and a down-sampling mode by adjusting at least one of the augmentation parameter and the convolution parameter.
A logic chip for implementing a binarized convolutional neural network (BCNN), the logic chip comprising:
- a shared logic module that is capable of performing both a binarized convolution operation and a down-sampling operation on a feature map;
- a memory storing adjustable parameters of the shared logic module, wherein the adjustable parameters determine whether the shared logic module performs a binarized convolution operation or a down-sampling operation;
- and
- a controller or a control interface to control the shared logic module to perform at least one binarized convolution operation followed by at least one down-sampling operation by adjusting the adjustable parameters of the shared logic module.
A method of classifying an image by a processor implementing a binarized convolution neural network, the method comprising:
- a) receiving, by the processor, a first feature map corresponding to an image to be classified;
- b) receiving, by the processor, a first set of parameters including at least one filter, at least one stride and at least one augmentation variable;
- c) performing, by the processor, a binarized convolution operation on the input feature map using the at least one filter and at least one stride to produce a second feature map;
- d) performing, by the processor, an augmentation operation on the input feature map using the at least one augmentation variable to produce a third feature map;
- e) combining, by the processor, the second feature map and the third feature map;
- f) receiving a second set of parameters including at least one filter, at least one stride and at least one augmentation variable;
- g) repeating c) to e) using the second set of parameters in place of the first set of parameters and the combined second and third feature maps in place of the first feature map.
Dependencies are inferred from the claim text.