Device and method for executing vector comparison operation
Patent Information
- Authority / Receiving Office
- CN Β· China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CAMBRICON TECH CO LTD
- Publication Date
- 2017-11-03
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The invention relates to the field of computer instruction operations, in particular to a device and method for performing vector comparison operations. Background technique
[0002] Vector comparison, that is, for two vectors with the same length, the corresponding elements are compared, and the obtained comparison results form a new output vector. In the field of deep learning, there is a need to perform size comparison operations on two vectors. In the restricted Boltzmann machine of the artificial neural network, there is such a step that requires sampling a vector composed of a group of neurons, that is, in the vector Each neuron is compared with a random number. If the value of the neuron is greater than the vector, it takes 1, otherwise it takes 0. Another example is to convert a group of 32-bit single-precision floating-point numbers into 16-bit half-precision floating-point numbers. If you choose the random carry method, you need to compare t...