Image processing acceleration method, image processing model storage method and corresponding device
By determining the correspondence between the convolution kernel and the hardware computing unit in the image processing model, parallel computing is realized, zero weight multiplication operation is avoided, and the problem of low parallel computing efficiency in the existing technology is solved, and it is suitable for a variety of convolutional nerves. Network type improves processing efficiency.
Patent Information
- Application Number
- CN201910300671.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-04-15
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-04-15
AI Technical Summary
Existing accelerators cannot implement parallel computing and no need to calculate zero weight multiplication operations, resulting in low efficiency when processing sparse convolutional neural networks and cannot be applied to sparse CNN and non-sparse CNN at the same time.
By obtaining the input feature map of the image processing model, we determine the hardware computing unit corresponding to each convolution kernel in the convolution layer, calculate the convolution results based on the non-zero weight and the input feature map in parallel, generate the output feature map, and avoid calculating zero weights Multiplication operation of values realizes parallel calculation.
It improves the network operation speed, is suitable for sparse CNN and non-sparse CNN, reduces computing resource consumption and improves processing efficiency.
Smart Images

Figure CN111831254B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of machine learning technology, and specifically to an image processing acceleration method and device, and an image processing model storage method and device. Background Art
[0002] With the pursuit of high-efficiency models, the parameter matrices of many current deep neural networks can be converted into sparse matrices through sparse operations. Neural networks that use sparse matrices as parameter matrices are referred to as sparse networks. Since the non-zero parameters in sparse networks are usually non-redundant, these parameters almost all contribute to the actual model results. Therefore, the use of sparse networks can not only ensure the accuracy of the model, but also reduce the model's consumption of storage space and computing time.
[0003] At present, the hardware platforms for running sparse networks are mainly field programmable gate arrays (FPGAs) and customized chips (ASICs). Since these hardware platforms can use parallel computing, they have better performance than general-purpose processors (CPUs), and are referred to as accelerators. Several commonly used accelerators for sparse networks include: CIRCNN, SCNN, Cambricon-S, etc. However, network sparsity will lead to computational irregularity, which in turn will lead to difficulties in parallel computing. If the parallel computing strategy of existing accelerators for non-sparse convolutional neural networks is directly applied to sparse convolutional neural networks, a large amount of invalid calculations will be wasted on zero-weight multiplication operations. Therefore, the challenge of designing accelerators for sparse convolutional neural networks is even greater.
[0004] However, in the process of implementing the present invention, the inventors found that the above technical solution has at least one of the following problems: 1) the data encoding overhead is too large, resulting in inefficiency in processing non-sparse networks; 2) the calculation process is too complicated, resulting in low network operation efficiency; 3) the calculation of coordinates requires additional overhead, resulting in consumption of more computing resources; 4) the data flow has data dependencies, resulting in low network operation efficiency, etc. In summary, the prior art has the problem of not being able to achieve parallel computing without calculating zero-weight multiplication operations, that is, the existing accelerator cannot be applied to both sparse CNN and non-sparse CNN. Summary of the invention
[0005] The present application provides an image processing acceleration method to solve the problem that the prior art cannot realize parallel computing without calculating zero-weight multiplication operations. The present application also provides an image processing acceleration device, and an image processing model storage method and device.
[0006] The present application provides an image processing acceleration method, comprising:
[0007] Get the input feature map of the convolutional layer in the image processing model;
[0008] Determine, from a plurality of hardware computing units, hardware computing units corresponding to the respective convolution kernels in the convolution layer;
[0009] Determining, by means of hardware computing units corresponding to the respective convolution kernels, convolution results between the respective convolution kernels and the input feature map in parallel according to non-zero weights in the convolution kernels and the input feature map;
[0010] Generate the output feature map of the convolution layer based on the convolution result.
[0011] Optionally, determining the hardware computing units corresponding to the respective convolution kernels in the convolution layer from the plurality of hardware computing units includes:
[0012] According to the output channel number of the convolution kernel and the number of hardware computing units, the hardware computing units corresponding to each convolution kernel are determined.
[0013] Optionally, also include:
[0014] Obtain the non-zero weight, the row number and column number of the non-zero weight in the convolution kernel, and the input channel number and output channel number of each convolution kernel;
[0015] The convolution result is determined by the following steps:
[0016] For each non-zero weight in the convolution kernel, determining a sub-feature map corresponding to the non-zero weight from the input feature map according to the row number and the column number;
[0017] Performing a multiplication operation on the non-zero weight and the sub-feature map;
[0018] Performing an addition operation on the multiplication operation results corresponding to each non-zero weight included in the convolution kernel, as the convolution result;
[0019] The step of generating an output feature map of the convolution layer according to the convolution result includes:
[0020] For each output channel of the convolution layer, an addition operation is performed on the convolution results of multiple input channels corresponding to the output channel according to the input channel number and the output channel number, as an output feature map of the convolution layer on the output channel.
[0021] Optionally, obtaining the non-zero weight, the row number and column number of the non-zero weight in the convolution kernel, and the input channel number and output channel number of each convolution kernel includes:
[0022] Reading a non-zero weight parameter group from a non-zero weight parameter group matrix corresponding to the convolutional layer; the column number of the parameter group in the parameter group matrix is determined by taking the output channel number modulo the number of hardware operation units, and storing parameter groups corresponding to different hardware operation units in a row of parameter group elements in the parameter group matrix in order according to the number of hardware operation units;
[0023] Parsing the non-zero weight, the row number, the column number, and the first index value of the output channel number from the parameter group;
[0024] Determine a second index value of the output channel number according to the column number of the parameter group in the parameter group matrix;
[0025] Using the row number of the parameter group in the parameter group matrix as the input channel number;
[0026] The output channel number is determined according to the first index value, the second index value and the number of the hardware computing units.
[0027] Optionally, also include:
[0028] Get resource data of the hardware platform;
[0029] Determine the feature map size for convolution operations based on hardware resource data;
[0030] Dividing the input feature map into a plurality of input feature sub-maps of the feature map size;
[0031] Determining, by means of hardware computing units corresponding to the convolution kernels respectively, the convolution results between the convolution kernels and the input feature subgraphs in parallel according to the non-zero weights in the convolution kernels and the input feature subgraphs;
[0032] For each convolution kernel, the convolution results between the convolution kernel and each input feature sub-graph are concatenated to obtain the convolution result between the convolution kernel and the input feature graph.
[0033] Optionally, the hardware computing unit is located on a FPGA platform or an ASIC platform.
[0034] Optionally, the network structure of the image processing model includes a sparse convolutional neural network and / or a non-sparse convolutional neural network.
[0035] The present application also provides an image processing model storage method, comprising:
[0036] Obtaining a convolutional neural network-based image processing model to be stored;
[0037] For each non-zero weight of the image processing model, generating a parameter group of the non-zero weight according to the non-zero weight, the row number and column number of the non-zero weight in the convolution kernel, and the output channel number of the convolution kernel;
[0038] Determine the row and column positions of the parameter group in the non-zero weight parameter group matrix according to the input channel number and the output channel number of the non-zero weight;
[0039] The parameter group is stored in a memory according to the row and column positions.
[0040] The present application also provides an image processing accelerator, comprising:
[0041] An input feature map acquisition unit, used to acquire an input feature map of a convolutional layer in an image processing model;
[0042] A hardware computing unit allocating unit, used to determine, from a plurality of hardware computing units, hardware computing units corresponding to respective convolution kernels in the convolution layer;
[0043] A convolution operation unit, used to determine the convolution result between each convolution kernel and the input feature map in parallel according to the non-zero weights in the convolution kernel and the input feature map through hardware operation units corresponding to each convolution kernel respectively;
[0044] The output feature map generating unit is used to generate the output feature map of the convolution layer according to the convolution result.
[0045] The present application also provides an image processing model storage device, comprising:
[0046] A model acquisition unit, used to acquire a convolutional neural network-based image processing model to be stored;
[0047] A parameter group generating unit, for each non-zero weight of the image processing model, generating a parameter group of the non-zero weight according to the non-zero weight, the row number and column number of the non-zero weight in the convolution kernel, and the output channel number of the convolution kernel;
[0048] A parameter group positioning unit, used to determine the row and column positions of the parameter group in the non-zero weight parameter group matrix according to the input channel number and the output channel number of the non-zero weight;
[0049] A parameter group storage unit is used to store the parameter group into a memory according to the row and column positions.
[0050] The present application also provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, and when the computer-readable storage medium is run on a computer, the computer executes the above-mentioned various methods.
[0051] The present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the above-mentioned various methods.
[0052] Compared with the prior art, this application has the following advantages:
[0053] The image processing acceleration method provided in the embodiment of the present application obtains the input feature map of the convolution layer in the image processing model; determines the hardware computing units corresponding to each convolution kernel in the convolution layer from multiple hardware computing units; determines the convolution results between each convolution kernel and the input feature map in parallel according to the non-zero weights in the convolution kernel and the input feature map through the hardware computing units corresponding to each convolution kernel; generates the output feature map of the convolution layer according to the convolution result; this processing method makes it unnecessary to consider the operation of zero weight in the convolution operation process, and there is no need to calculate the weight coordinates, and there is no data dependency in the data flow. Specifically, the convolution operation data flow can provide the number of parallel computing operations that matches the hardware resources. The operation is a multiplication-addition operation in the convolutional neural network. The number of operations of a multiplication-addition operation is 2, which can realize parallel computing without calculating the multiplication operation of zero weight; therefore, the network operation speed can be effectively improved, and it is applicable to both sparse CNN and non-sparse CNN. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 is a flow chart of an embodiment of an image processing acceleration method provided by the present application;
[0055] Figure 2 It is a schematic diagram of sparse weights in the form of a four-dimensional dense array in an embodiment of an image processing acceleration method provided by the present application;
[0056] Figure 3 is a specific flow chart of an embodiment of an image processing acceleration method provided by the present application;
[0057] Figure 4 It is a schematic diagram of a convolution operation data flow of an embodiment of an image processing acceleration method provided by the present application;
[0058] Figure 5 This is a schematic diagram of a data storage format after weight storage compression in an embodiment of an image processing acceleration method provided by the present application;
[0059] Figure 6 is a specific flow chart of an embodiment of an image processing acceleration method provided by the present application;
[0060] Figure 7 is a schematic diagram of an embodiment of an image processing acceleration device provided by the present application;
[0061] Figure 8is a flowchart of an embodiment of an image processing model storage method provided by the present application;
[0062] Fig. 9 It is a schematic diagram of an embodiment of an image processing model storage device provided by the present application. DETAILED DESCRIPTION
[0063] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0064] In the present application, an image processing acceleration method and device, and an image processing model storage method and device are provided. In the following embodiments, various solutions are described in detail one by one.
[0065] First embodiment
[0066] Please refer to Figure 1 , which is a flow chart of an embodiment of an image processing acceleration method provided by the present application, and the execution subject of the method includes an image processing acceleration device. An image processing acceleration method provided by the present application includes:
[0067] Step S101: Obtain an input feature map of a convolutional layer in an image processing model.
[0068] The network structure of the image processing model includes a convolutional neural network (CNN). CNN is a type of feedforward neural network that includes convolution calculations and has a deep structure, and is one of the representative algorithms of deep learning. From the perspective of whether the network parameters are redundant, the convolutional neural network can be a sparse convolutional neural network (sparse CNN) or a non-sparse convolutional neural network (non-sparse CNN).
[0069] The sparse CNN includes a convolutional neural network in which the number of non-zero parameters obtained is much lower than the total number of parameters through weight clipping, matrix transformation, regularization constraints, etc. during or after the convolutional neural network training process, such as a sparsity of 90% or even above 99%. For example, if the total number of parameters is 1000*1000, of which there are only 10,000 non-zero parameters, then the CNN is a sparse CNN.
[0070] The non-sparse CNN includes a neural network directly obtained without performing any form of sparse operation during and after the convolutional neural network training process. Since the values of most parameters in the parameter matrix of the non-sparse CNN are non-zero, this type of CNN can also be called a dense convolutional neural network.
[0071] The network structure of the image processing model can be a sparse convolutional neural network or a non-sparse convolutional neural network. It can also be a case where the weight matrices of some convolutional layers are sparse matrices and the weight matrices of other convolutional layers are non-sparse matrices. For example, the weight matrices of the 1st, 3rd and 5th convolutional layers of the image processing model are sparse matrices, while the weight matrices of the 2nd, 4th and 6th convolutional layers are dense matrices. The method provided in the embodiment of the present application can accelerate the computing speed of the convolutional layer of the sparse matrix, and improve the computing speed of the convolutional layer of the dense matrix, and the weight storage method and convolution operation method for these two types of convolutional layers are consistent.
[0072] The image processing model may include multiple convolutional layers, each of which is composed of several convolutional kernels (convolutional units), and the parameters of each convolutional kernel may be optimized by the back propagation algorithm. The purpose of the convolution operation is to extract different features of the input. The first convolutional layer may only extract some low-level features such as edges, lines, and corners. More layers of the network can iteratively extract more complex features from low-level features. Specifically, the convolution kernel can be a weighted average of pixels in a small area of the input image in the output image given an input image during image processing, where the weight is defined by a function, which is called a convolution kernel.
[0073] According to the position of the convolution layer in the CNN, the input feature map of the convolution layer can be the input data of the input layer in the image processing model, or the output feature map of the previous convolution layer. This embodiment takes the first convolution layer of the CNN as an example to illustrate the method.
[0074] like Figure 2As shown, in this embodiment, the input image is three RGB channels: input channels 0, 1 and 2, the first convolution layer includes 12 groups of convolution kernels, the number of convolution kernels in each group of convolution kernels is the same as the number of channels of the input image, different convolution kernels correspond to different input channels, the size of each convolution kernel is 3X3, the convolution process of this layer is firstly to convolve each convolution kernel with the image of the corresponding input channel respectively, to obtain 12X3 feature maps, and then to accumulate the convolution results of the three channels corresponding to each group of convolution kernels, to obtain 12 output feature maps output by the convolution layer. Among them, the reason why one convolution layer includes multiple groups of convolution kernels is that the feature extraction obtained by one group of convolution kernels (one output channel) is insufficient, so it is usually necessary to add multiple groups of convolution kernels, such as 12 groups of convolution kernels, so that 12 kinds of features can be learned.
[0075] After obtaining the input feature map of the convolution layer, we can proceed to the next step to determine the hardware computing units on the accelerator platform that correspond to each convolution kernel in the convolution layer.
[0076] Step S103: Determine, from a plurality of hardware computing units, hardware computing units corresponding to the respective convolution kernels in the convolution layer.
[0077] The multiple hardware computing units may be located on a customizable hardware platform, such as an FPGA platform, an ASIC platform, etc. Since the algorithm can be implemented in a large-scale parallel manner on a customizable hardware platform, the convolution operation speed is significantly improved, so this embodiment of the application refers to this hardware platform as an accelerator platform.
[0078] FPGA (Field Programmable Gate Array) is a programmable semi-custom chip that has the same parallel processing advantages as GPU, and can also be designed with multiple cores. Its biggest advantage lies in its programmable nature. This also means that users can quickly burn the circuit according to the required logical functions. Even for the logic blocks and connections of the finished FPGA after leaving the factory, users can configure these chips to implement custom hardware functions by upgrading the software without changing the hardware. By configuring the programmable architecture of the FPGA to achieve any desired combination of digital functions, algorithms can be implemented in a massively parallel manner, which means that big data processing can be performed very quickly and efficiently.
[0079] The computing power and efficiency of ASIC chips are directly customized according to the needs of specific algorithms, so they can achieve advantages such as small size, low power consumption, high reliability, strong confidentiality, high computing performance, and high computing efficiency. Therefore, in the specific application fields it targets, the energy efficiency of ASIC chips far exceeds that of general-purpose chips such as CPUs and GPUs, as well as semi-customized FPGAs. However, unless relying on other general-purpose processing hardware, ASIC chips can only execute the specific types of algorithms for which they were designed.
[0080] The number of hardware computing units included in the accelerator platform determines the parallelism of the convolutional neural network execution. In this embodiment, a customized integrated circuit with a parallelism of 4 is designed, and the number of hardware computing units included in the accelerator platform is 4. The number of hardware computing units is determined by hardware, and the hardware design can be programmed by software, which is the function of FPGA.
[0081] In one example, step S103 can be implemented as follows: determine the hardware computing units corresponding to each convolution kernel according to the output channel number of each convolution kernel and the number of hardware computing units of the accelerator platform. The number of convolution kernel groups C, that is, the number of output channels, is usually greater than the number of hardware computing units N in a neural network. When the number of convolution kernel groups C is greater than the number of hardware computing units N, the remainder of C can be calculated with N as the base (divisor), and the C group of convolution kernels can be distributed to N computing units according to the remainder for parallel convolution operations. This processing method allows the reading and writing of normalized weight parameters to avoid competition for storage bandwidth; therefore, the network operation speed can be effectively improved.
[0082] For example, when there are 12 groups of convolution kernels that need to be assigned to 4 computing units, the convolution operations of the 0th, 4th, and 8th groups of convolution kernels are all assigned to the 0th hardware computing unit, the convolution operations of the 1st, 5th, and 9th groups of convolution kernels are all assigned to the 1st hardware computing unit, the convolution operations of the 2nd, 6th, and 10th groups of convolution kernels are all assigned to the 2nd hardware computing unit, and the convolution operations of the 3rd, 7th, and 11th groups of convolution kernels are all assigned to the 3rd hardware computing unit.
[0083] After determining the hardware computing units corresponding to each convolution kernel, we can proceed to the next step to determine the convolution result between each convolution kernel and the input data.
[0084] Step S105: by using the hardware computing units corresponding to the respective convolution kernels, according to the non-zero weights in the convolution kernels and the input feature map, the convolution results between the respective convolution kernels and the input feature map are determined in parallel.
[0085] The acceleration method provided in the embodiment of the present application introduces a core operator of element-matrix point-to-point multiplication based on the parallel execution of convolution operations on multiple convolution kernels through multiple hardware computing units, wherein the "element" is a non-zero weight, and the matrix can be the input feature map itself or a partial area in the input feature map - the input feature submap. The convolution results between each convolution kernel and the input feature map can be obtained without calculating the multiplication operation of zero weight.
[0086] like Figure 3 As shown, in one example, the convolution result can be determined by the following steps:
[0087] Step S301: for each non-zero weight in the convolution kernel, determine a sub-feature map corresponding to the non-zero weight from the input feature map according to the row number and the column number.
[0088] Step S303: performing a multiplication operation on the non-zero weight and the sub-feature map.
[0089] The multiplication operation in this step is the multiplication operation between the non-zero weights in the convolution kernel and the sub-feature graphs, that is, this embodiment introduces the core operator of element-matrix point-to-point multiplication. Among them, the non-zero weight is just a numerical value, which is called an element; the sub-feature graph can be expressed in matrix form, which is called a matrix.
[0090] Step S305: performing an addition operation on the multiplication results corresponding to each non-zero weight included in the convolution kernel as the convolution result.
[0091] In specific implementation, step S305 may include the following sub-steps: 1) determining at least one non-zero weight included in the convolution kernel according to the input channel number and the output channel number of the convolution kernel; 2) performing an addition operation on the multiplication results corresponding to the at least one non-zero weight, as the convolution result.
[0092] like Figure 4 As shown in FIG, the input feature map includes feature maps of M (such as 3) input channels, the output feature map includes feature maps of N (such as 12) output channels (size is 7X7), the convolution kernel size is 3X3, including 3 non-zero weights, namely the non-zero weight of the 0th row and 0th column, the non-zero weight of the 1st row and 2nd column, and the non-zero weight of the 2nd row and 1st column, and the convolution kernel movement step length is 3; for an input feature sub-map (size is 5X5), the convolution kernel can move 3 steps up and down in a small block of 5X5, also That is to say, each non-zero weight corresponds to a 3X3 area (i.e., a sub-feature map corresponding to the row and column position of the non-zero weight in the input feature sub-map), and each non-zero weight is multiplied by its corresponding sub-feature map (size 3X3), and the multiplication result corresponding to the non-zero weight in row 0 and column 0, the multiplication result corresponding to the non-zero weight in row 1 and column 2, and the multiplication result corresponding to the non-zero weight in row 2 and column 0 are obtained as shown in the figure. The convolution result between the convolution kernel and the sub-feature map can be obtained by accumulating these three multiplication results. Among them, the number of operations involved in obtaining the convolution result includes: 1X9X3 multiplication operations and 2 addition operations; 1X9 refers to the multiplication operation of a non-zero weight and 9 element values in the sub-feature map, 3 refers to three non-zero weights, and 2 refers to performing 2 additions on the convolution results corresponding to each of the three input channels, which can be accumulated through the cache and accumulator during specific implementation. In the design of parallel computing, the acceleration method provided in the embodiment of the present application adopts a mode of parallel computing of multiple output channels.
[0093] The acceleration method provided in the embodiment of the present application adopts the following method: Figure 4 The data flow shown in the figure maximizes the reuse of non-zero weights. The reason is that, taking a 3x3 convolution kernel as an example, the convolution kernel can move 3 steps up and down in the 5x5 input feature subgraph, that is, each non-zero weight corresponds to a 3x3 area. Since a non-zero weight is multiplied by a 3x3 area, the number of reuses is 3x3. In formula, the number of reuses is (w_i–w_k+1)*(h_i–h_k+1), and the four parameters are input width, convolution kernel width, input height, and convolution kernel height. Since the reuse of non-zero weights is maximized, the network operation speed can be effectively improved. At the same time, this processing method also basically ensures that each hardware computing unit is assigned the same workload, that is, each hardware computing unit processes a weight multiplied by a 3x3 input block (that is, 9 multiplications), so the workload of the hardware computing units is the same; therefore, it can effectively ensure that the load of each computing unit is balanced, thereby improving the network operation speed. In addition, this processing method also makes the convolution operation data flow calculation method different from the traditional convolution definition. Each time, multiple non-zero weights are selected to multiply part of the area in the input image, where the non-zero weights come from different output channels to ensure data independence.
[0094] It should be emphasized that the acceleration method provided in the embodiment of the present application does not calculate the multiplication between zero weights and the input feature map, but only calculates the multiplication between non-zero weights and the input feature map. It can be seen that all convolution calculations are valid, and therefore the network operation speed can be effectively improved.
[0095] After determining the results of each convolution, we can proceed to the next step and generate the output feature map of the convolution layer based on the convolution results.
[0096] Step S107: Generate an output feature map of the convolution layer according to the convolution result.
[0097] For each output channel of the convolution layer (e.g., 12 output channels in total), an addition operation is performed on the convolution results of multiple input channels (e.g., 3) on the output channel as the output feature map of the convolution layer on the output channel. If the input channel is 1, the convolution result of step S105 is the output feature map.
[0098] In this embodiment, the acceleration method may further include the following steps: obtaining the non-zero weight, the row number and column number of the non-zero weight in the convolution kernel, and the input channel number and output channel number of each convolution kernel. After obtaining these parameters, it is possible to determine which hardware computing unit performs the element-matrix point-to-point multiplication operation between the non-zero weight and which sub-feature map in the input feature map of which input channel.
[0099] In order to save the storage space of the image processing model and speed up the processing of parallel programs, it is necessary to compress and store the sparse CNN. The principle of compressed storage can be: do not store the same elements repeatedly; do not store zero-value elements. Several commonly used sparse matrix storage formats are as follows: column-major sparse compressformat, Compressed Sparse Column Format, CSC, COO, CSR, DIA, ELL, HYB, etc. These storage formats can achieve the purpose of compressing the matrix and reducing the space occupied by the matrix storage. The compression method mainly describes the storage location of non-zero elements in the matrix by adding some "meta information" (such as based on columns), and then combines the values of non-zero elements to represent the matrix.
[0100] For example, to create a 3x3 sparse matrix like this: 1 0 0 0 3 0 0 0 0
[0104] The 3x3 matrix above can be represented as the following three arrays using column-major sparse compress format:
[0105] Array(0,1,1,0)
[0106] Array(0,1)
[0107] Array(1,2)
[0108] The first array represents the column offset; the second array represents the row number of the non-zero elements in each column, that is, the row index, and the row number starts from 0. For example, in the matrix above, element 1 of the first column is in row 0, and element 2 is in row 2; the third array records the non-zero values in the matrix in order by column.
[0109] In this embodiment, a new sparse CNN compression storage method is proposed, which is called a hybrid compression format based on mathematical modulus. The process of obtaining the above parameters in a convolution layer (including: non-zero weights, row numbers and column numbers of the non-zero weights in the convolution kernel, and input channel numbers and output channel numbers of each convolution kernel) based on the compression storage method is as follows: 1) read the non-zero weight parameter group from the non-zero weight parameter group matrix corresponding to the convolution layer stored in the memory of the accelerator platform, such as Figure 5 The last non-zero weight parameter group (3, 1, 0, 2, 1) corresponding to input channel 1 in the parameter group matrix, the column number of the parameter group in the parameter group matrix is determined according to the output channel number modulo the number of hardware computing units, and the parameter groups corresponding to different hardware computing units are stored in a row of parameter group elements of the parameter group matrix according to the number of hardware computing units, so that the parameter groups in adjacent columns in the parameter group matrix correspond to different hardware computing units; 2) parsing from the parameter group to obtain the non-zero weight, the row number and the column number, and the first index value of the output channel number, For example, in the 5-tuple (3,1,0,2,1), the first element 3 represents a non-zero weight, the second and third elements 1 and 2 represent the row number and column number of the non-zero weight in the convolution kernel, respectively, and the fourth element 2 represents the first index value of the output channel number, which is the quotient of the output channel number 11 divided by the number of hardware computing units 4, which is 2; 3) according to the column number of the parameter group in the parameter group matrix, determine the second index value of the output channel number, the second index value includes the remainder obtained by dividing the output channel number of the convolution kernel where the non-zero weight is located by the number of computing units, such as Figure 5 The non-zero weights of different input channels are stored centrally, and the column number of each non-zero weight in the parameter group matrix is related to the output channel of the weight; 4) the row number of the parameter group in the parameter group matrix is used as the input channel number, such as the input channel number of the above 5-tuple (3,1,0,2,1) is 1; 5) according to the first index value, the second index value and the number of hardware computing units, the output channel number corresponding to the non-zero weight is determined, such as output channel number = first index value X number of hardware computing units + (second index value mod number of parallelism), in this example, output channel number = 2X4 + (7mod4) = 11.
[0110] It can be seen that in this hybrid compression format based on mathematical modulo, non-zero weights are sorted according to the remainders of the output channels in which they are located with respect to the design parameters (such as the number of hardware computing units or the number of parallel operations), so that the access to the weights can be regularized and the bandwidth of the on-chip memory can be fully utilized. That is to say, after distributing the parameter groups of each non-zero weight in different row and column positions in the parameter group matrix according to the remainder of the output channel with respect to the number of parallel operations, since the hardware computing units that perform convolution operations are also allocated according to the remainders, there will be no problem of competing for storage bandwidth when accessing data.
[0111] In this embodiment, the compressed non-zero weight parameter group is stored in the memory of the accelerator platform in the form of a two-dimensional matrix (parameter group matrix). In this two-dimensional matrix, the row index represents the input channel number, such as the first row represents that the weights of this row are all from the first input channel; the column index represents the second index value of the output channel number, such as (3,1,0,2,1) in the above example is located in the 7th column of the 2nd row. When the parameter group is read, according to the first index value 2 and the second index value 7, it can be determined that the weight is on the 11th output channel. After taking the modulus of 11 pairs of parallel numbers 4, it is determined that the multiplication operation between the weight and the input feature map is performed by the hardware operation unit 3.
[0112] In one example, assuming that the computational parallelism is N, in each row of the parameter group matrix, the N consecutive weights come from different output channels, and the values of the output channels modulo N are successively increased by 1. For example, if N=4, then the 4 consecutive weights in a row belong to different output channels.
[0113] In this embodiment, for any row of parameter group elements in the parameter group matrix, each non-zero weight parameter group is read in sequence according to the column number. After reading a parameter group, the non-zero weight is parsed and other parameters are determined (including: the row number and column number of the non-zero weight in the convolution kernel, and the input channel number and output channel number of each convolution kernel). Then, the non-zero weight is allocated to the corresponding hardware operation unit to perform the multiplication operation between the non-zero weight and the input feature map. Since the column number of the parameter group of the non-zero weight in the parameter group matrix is determined modulo the number of hardware operation units according to the output channel number, and since the parameter groups of adjacent columns of the number of hardware operation units correspond to different hardware operation units, the access to the non-zero weight is regularized, and the bandwidth of the on-chip (hardware platform) memory can be fully utilized.
[0114] The acceleration method provided in the embodiment of the present application can also use different fixed-point schemes to store weight index values, that is, different data precisions are used for different data in the parameter group, and the data precision can also be called storage bandwidth. For example, in the above example, the data precision of the first element (non-zero weight) in the 5-tuple is 16 bits, the second and third elements (the position of the non-zero weight in the convolution kernel: row number and column number) occupy 4 bits in total, the fourth element (the first index value: quotient) is 8 bits, and the signal of whether the parameter group is valid is 1 bit.
[0115] The method provided in the embodiment of the present application adopts the above-mentioned hybrid compression format based on mathematical modulo, so that the data dependencies in the convolution operation data stream can meet the requirement of a pipeline interval of 1, that is, the access to the weights is regularized, thereby ensuring that the weights required for each parallel calculation can be accessed within one clock cycle, and the calculation results need to be accumulated to the output cache within one clock cycle; therefore, the network operation speed can be effectively improved.
[0116] like Figure 6 As shown, in this embodiment, the acceleration method may further include the following steps:
[0117] Step S601: Acquire resource data of the hardware platform.
[0118] The resource data of the hardware platform may include storage resources, computing resources, communication resources (bandwidth resources), etc. The hardware platform may also be referred to as a computing platform, etc. The hardware platform of this embodiment adopts an FPGA platform. For the FPGA platform, computing resources may be DSP, LUT, etc., and storage resources may be LUT, etc.
[0119] Step S603: Determine the feature map size of the convolution operation according to the hardware resource data.
[0120] Hardware resource data may affect the specific calculation method of the convolution layer. If the hardware resources of the hardware platform are relatively tight, the feature map size when performing the convolution operation can be limited, and the input feature map is divided into multiple input feature sub-maps of the feature map size. The convolution operation is performed on each input feature sub-map separately through the convolution kernel, and then the convolution results of each input feature sub-map are spliced to obtain the convolution result of the input feature map. The reason for adopting this processing method is that if the non-zero weight is directly operated with the input feature map of larger size, then within one cycle, a non-zero weight must be multiplied with the larger input feature map matrix. Although this method makes the reuse rate of non-zero weights higher, limited hardware resources may make it impossible to complete the multiplication operation between a non-zero weight and a larger input feature map matrix within one cycle, thereby affecting the execution effect of parallel computing.
[0121] Step S604: Divide the input feature map into a plurality of input feature sub-maps of the feature map size.
[0122] For example, the size of the input feature map is n*n, and n is relatively large. Since the size of the feature map does not match the hardware resources, this embodiment divides the map into multiple 5*5 input feature sub-maps.
[0123] Accordingly, step S105 may include the following sub-steps:
[0124] Step S1051: Determine the convolution result between each convolution kernel and the input feature subgraph in parallel according to the non-zero weights in the convolution kernel and the input feature subgraph through the hardware computing units corresponding to each convolution kernel.
[0125] Step S1052: For each convolution kernel, concatenate the convolution results between the convolution kernel and each input feature sub-graph to obtain the convolution result between the convolution kernel and the input feature graph.
[0126] Accordingly, the determination of the sub-feature map corresponding to the non-zero weight from the input feature map in step S301 may be performed in the following manner: determining the sub-feature map corresponding to the non-zero weight from each input feature sub-map. Figure 4 As shown in the figure, the sub-feature maps (size of 3*3) corresponding to the three non-zero weights in the convolution kernel are determined from the input feature sub-map of size 5*5, rather than directly determining the sub-feature maps corresponding to the three non-zero weights in the convolution kernel from the complete input feature map.
[0127] The present application embodiment Figure 6 The method shown performs convolution operations, so that the network operation speed can be effectively improved under limited hardware resources.
[0128] It can be seen from the above embodiments that the acceleration method of the convolutional neural network provided in the embodiments of the present application obtains the input feature map of the convolutional layer in the image processing model; determines the hardware computing units corresponding to each convolution kernel in the convolutional layer from multiple hardware computing units; determines the convolution results between each convolution kernel and the input feature map in parallel according to the non-zero weights in the convolution kernel and the input feature map through the hardware computing units corresponding to each convolution kernel; generates the output feature map of the convolution layer according to the convolution result; this processing method makes it unnecessary to consider the operation of zero weight in the convolution operation process, and there is no need to calculate the weight coordinates, and there is no data dependency in the data flow. Specifically, the convolution operation data flow can provide the number of parallel computing operations that matches the hardware resources. The operation is a multiplication and addition operation in the convolutional neural network. The number of operations of a multiplication and addition operation is 2, which can realize parallel computing without calculating the multiplication operation of zero weight; therefore, the network operation speed can be effectively improved, and it is applicable to both sparse CNN and non-sparse CNN.
[0129] In the above embodiment, an image processing acceleration method is provided, and correspondingly, the present application also provides an image processing acceleration device, which corresponds to the embodiment of the above method.
[0130] Second embodiment
[0131] Please see Figure 7 , which is a schematic diagram of an embodiment of the image processing acceleration device of the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described below is only illustrative.
[0132] The present application further provides an image processing acceleration device, comprising:
[0133] An input feature map acquisition unit 701 is used to acquire an input feature map of a convolutional layer in an image processing model;
[0134] A hardware computing unit allocating unit 703, used to determine, from a plurality of hardware computing units, hardware computing units corresponding to respective convolution kernels in the convolution layer;
[0135] A convolution operation unit 705, configured to determine the convolution result between each convolution kernel and the input feature map in parallel according to the non-zero weights in the convolution kernel and the input feature map through hardware operation units corresponding to each convolution kernel respectively;
[0136] The output feature map generating unit 707 is used to generate an output feature map of the convolution layer according to the convolution result.
[0137] Optionally, the hardware operation unit allocation unit 703 is specifically used to determine the hardware operation units corresponding to each convolution kernel according to the output channel number of the convolution kernel and the number of hardware operation units.
[0138] Optionally, also include:
[0139] A data acquisition unit, used to acquire the non-zero weight, the row number and column number of the non-zero weight in the convolution kernel, and the input channel number and output channel number of each convolution kernel;
[0140] The convolution operation unit 705 includes:
[0141] A sub-feature map determining subunit, configured to determine, for each non-zero weight in the convolution kernel, a sub-feature map corresponding to the non-zero weight from the input feature map according to the row number and the column number;
[0142] A multiplication operation subunit, configured to perform a multiplication operation on the non-zero weight and the sub-feature map;
[0143] An addition operation subunit, used for performing an addition operation on the multiplication operation results respectively corresponding to each non-zero weight included in the convolution kernel as the convolution result;
[0144] The output feature map generating unit 707 is specifically used to perform an addition operation on the convolution results of multiple input channels corresponding to each output channel of the convolution layer according to the input channel number and the output channel number, as the output feature map of the convolution layer on the output channel.
[0145] Optionally, the data acquisition unit includes:
[0146] A parameter group reading subunit is used to read a non-zero weight parameter group from a non-zero weight parameter group matrix corresponding to the convolution layer; the column number of the parameter group in the parameter group matrix is determined by taking the output channel number modulo the number of hardware operation units, and the parameter groups corresponding to different hardware operation units are stored in a row of parameter group elements in the parameter group matrix according to the number of hardware operation units.
[0147] A parsing subunit, configured to parse the parameter group to obtain a first index value of the non-zero weight, the row number, the column number, and the output channel number; the first index value includes a quotient of the output channel number of the convolution kernel where the non-zero weight is located divided by the number of the operation units;
[0148] A second index value determination subunit is used to determine a second index value of the output channel number according to the column number of the parameter group in the parameter group matrix; the second index value includes a remainder obtained by dividing the output channel number of the non-zero weight by the number of the operation units;
[0149] An input channel number determination subunit, used for taking the row number of the parameter group in the parameter group matrix as the input channel number;
[0150] The output channel number determination subunit is used to determine the output channel number according to the first index value, the second index value and the number of the hardware computing units.
[0151] Optionally, also include:
[0152] A hardware resource data acquisition unit, used to acquire resource data of the hardware platform;
[0153] A feature map size determination unit, used to determine a feature map size for a convolution operation according to hardware resource data;
[0154] An input feature map segmentation unit, used for dividing the input feature map into a plurality of input feature sub-maps of the feature map size;
[0155] The convolution operation unit 705 is specifically used to determine the convolution results between each convolution kernel and the input feature subgraph in parallel according to the non-zero weights in the convolution kernel and the input feature subgraph through the hardware operation units corresponding to each convolution kernel respectively; for each convolution kernel, the convolution results between the convolution kernel and each input feature subgraph are spliced to obtain the convolution result between the convolution kernel and the input feature graph.
[0156] Optionally, the hardware computing unit is located on a FPGA platform or an ASIC platform.
[0157] Optionally, the network structure of the image processing model includes a sparse convolutional neural network and / or a non-sparse convolutional neural network.
[0158] In the above embodiment, an image processing acceleration method is provided, and correspondingly, the present application also provides an image processing model storage method, which corresponds to the embodiment of the above method.
[0159] Third embodiment
[0160] Please refer to Figure 8 , which is a flow chart of an embodiment of the image processing model storage method of the present application. Since the method embodiment is basically similar to the embodiment 1, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment 1. The method embodiment described below is only illustrative.
[0161] A method for storing an image processing model in this embodiment includes the following steps:
[0162] Step S801: Obtain an image processing model based on a convolutional neural network to be stored.
[0163] The image processing model may include multiple convolutional layers, wherein the weight matrices of some convolutional layers are sparse matrices and the weight matrices of some convolutional layers are dense matrices.
[0164] Step S803: For each non-zero weight of the image processing model, generate a parameter group of the non-zero weight according to the non-zero weight, the row number and column number of the non-zero weight in the convolution kernel, and the output channel number of the convolution kernel.
[0165] The description of the elements in the parameter group can refer to the relevant description in the above-mentioned embodiment 1, which will not be repeated here.
[0166] Step S805: Determine the row and column positions of the parameter group in the non-zero weight parameter group matrix according to the input channel number and the output channel number of the non-zero weight.
[0167] Step S807: Store the parameter group into a memory according to the row and column positions.
[0168] The storage method provided by the embodiment of the present application stores the parameter group matrix corresponding to each convolution layer according to different convolution layers. The row position of the parameter group in the parameter group matrix can be determined according to the input channel number of the non-zero weight, such as storing the non-zero weight parameter group of the same input channel number in the same row in the matrix; the column position of the parameter group in the parameter group matrix can be determined according to the output channel number of the non-zero weight, such as determining the column number of the parameter group in the matrix according to the value (remainder) modulo the number of hardware operation units of the output channel number, and specifically storing the parameter groups corresponding to different hardware operation units according to the number of hardware operation units in sequence, such as the number of hardware operation units is 4, then the adjacent 4 parameter groups in a row of the matrix can correspond to different hardware operation units, so that the access to the weights during the convolution operation is regularized, and the bandwidth of the on-chip memory can be fully utilized, that is, after distributing the parameter groups of each non-zero weight in different row and column positions in the parameter group matrix according to the remainder of the output channel with respect to the parallel number, since the hardware operation units performing the convolution operation are also allocated according to the remainder, there will be no problem of competing for storage bandwidth when taking data.
[0169] It can be seen from the above embodiments that the image processing model storage method provided in the embodiments of the present application obtains an image processing model based on a convolutional neural network to be stored; for each non-zero weight of the image processing model, generates a parameter group of the non-zero weight according to the non-zero weight, the row number and column number of the non-zero weight in the convolution kernel, and the output channel number of the convolution kernel; determines the row and column positions of the parameter group in the non-zero weight parameter group matrix according to the input channel number and the output channel number of the non-zero weight; stores the parameter group in the memory according to the row and column positions; this processing method reduces the data encoding overhead, and the convolution operation process based on this storage method does not need to consider zero weights, does not need to calculate weight coordinates, and there is no data dependency in the data flow; therefore, the network operation speed can be effectively improved, and it is applicable to both sparse CNN and dense CNN.
[0170] In the above embodiment, a method for storing an image processing model is provided, and correspondingly, the present application also provides an image processing model storage device, which corresponds to the embodiment of the above method.
[0171] Fourth embodiment
[0172] Please see Fig. 9 , which is a schematic diagram of an embodiment of the image processing model storage device of the present application. Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described below is only illustrative.
[0173] The present application further provides an image processing model storage device, comprising:
[0174] A model acquisition unit 901 is used to acquire an image processing model based on a convolutional neural network to be stored;
[0175] A parameter group generating unit 903 is used to generate a parameter group of each non-zero weight of the image processing model according to the non-zero weight, the row number and column number of the non-zero weight in the convolution kernel, and the output channel number of the convolution kernel;
[0176] A parameter group positioning unit 905 is used to determine the row and column positions of the parameter group in the non-zero weight parameter group matrix according to the input channel number and the output channel number of the non-zero weight;
[0177] The parameter group storage unit 907 is used to store the parameter group into a memory according to the row and column positions.
[0178] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
[0179] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0180] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0181] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.
[0182] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
Claims
1. An image processing acceleration method, characterized in that: include: Get the input feature map of the convolutional layer in the image processing model; Determine, from a plurality of hardware computing units, hardware computing units corresponding to the respective convolution kernels in the convolution layer; Determine, by means of hardware computing units corresponding to the respective convolution kernels, in parallel, according to the non-zero weights in the convolution kernels and the input feature map, the convolution results between the respective convolution kernels and the input feature map, wherein the convolution results are determined by the following steps: for each non-zero weight in the convolution kernel, according to the row number and column number of the non-zero weight in the convolution kernel, determine from the input feature map a sub-feature map corresponding to the non-zero weight; perform a multiplication operation on the non-zero weight and the sub-feature map; perform an addition operation on the multiplication results corresponding to the respective non-zero weights included in the convolution kernel, as the convolution result; Generate the output feature map of the convolution layer based on the convolution result.
2. The method according to claim 1, characterized in that The step of determining the hardware computing units corresponding to the respective convolution kernels in the convolution layer from the plurality of hardware computing units includes: According to the output channel number of the convolution kernel and the number of hardware computing units, the hardware computing units corresponding to each convolution kernel are determined.
3. The method according to claim 1, characterized in that Also includes: Obtain the non-zero weight, the row number and column number of the non-zero weight in the convolution kernel, and the input channel number and output channel number of each convolution kernel; The step of generating an output feature map of the convolution layer according to the convolution result includes: For each output channel of the convolution layer, an addition operation is performed on the convolution results of multiple input channels corresponding to the output channel according to the input channel number and the output channel number, as an output feature map of the convolution layer on the output channel.
4. The method according to claim 3, characterized in that The obtaining of the non-zero weights, the row numbers and column numbers of the non-zero weights in the convolution kernels, and the input channel numbers and output channel numbers of each convolution kernel includes: Reading a non-zero weight parameter group from a non-zero weight parameter group matrix corresponding to the convolutional layer; the column number of the parameter group in the parameter group matrix is determined by taking the output channel number modulo the number of hardware operation units, and storing parameter groups corresponding to different hardware operation units in a row of parameter group elements in the parameter group matrix in order according to the number of hardware operation units; Parsing the non-zero weight, the row number, the column number, and the first index value of the output channel number from the parameter group; Determine a second index value of the output channel number according to the column number of the parameter group in the parameter group matrix; Using the row number of the parameter group in the parameter group matrix as the input channel number; The output channel number is determined according to the first index value, the second index value and the number of the hardware computing units.
5. The method according to claim 1, characterized in that Also includes: Get resource data of the hardware platform; Determine the feature map size for convolution operations based on hardware resource data; Dividing the input feature map into a plurality of input feature sub-maps of the feature map size; Determining, by means of hardware computing units corresponding to the convolution kernels respectively, the convolution results between the convolution kernels and the input feature subgraphs in parallel according to the non-zero weights in the convolution kernels and the input feature subgraphs; For each convolution kernel, the convolution results between the convolution kernel and each input feature sub-graph are concatenated to obtain the convolution result between the convolution kernel and the input feature graph.
6. The method according to claim 1, characterized in that The hardware computing unit is located on a FPGA platform or an ASIC platform.
7. The method according to claim 1, characterized in that The network structure of the image processing model includes a sparse convolutional neural network and / or a non-sparse convolutional neural network.
8. A method for storing an image processing model, wherein the image processing model uses the method of claim 1 to accelerate image processing, characterized in that: include: Obtaining the image processing model based on the sparse convolutional neural network to be stored; For each non-zero weight of the image processing model, generating a parameter group of the non-zero weight according to the non-zero weight, the row number and column number of the non-zero weight in the convolution kernel, and the output channel number of the convolution kernel; Determine the row and column positions of the parameter group in the non-zero weight parameter group matrix according to the input channel number and the output channel number of the non-zero weight; The parameter group is stored in a memory according to the row and column positions.
9. An image processing accelerator, characterized in that: include: An input feature map acquisition unit, used to acquire an input feature map of a convolutional layer in an image processing model; A hardware computing unit allocating unit, used to determine, from a plurality of hardware computing units, hardware computing units corresponding to respective convolution kernels in the convolution layer; A convolution operation unit, configured to determine, through hardware operation units corresponding to each convolution kernel, the convolution result between each convolution kernel and the input feature map in parallel according to the non-zero weights in the convolution kernel and the input feature map, wherein the convolution result is determined by the following steps: for each non-zero weight in the convolution kernel, according to the row number and column number of the non-zero weight in the convolution kernel, determining the sub-feature map corresponding to the non-zero weight from the input feature map; performing a multiplication operation on the non-zero weight and the sub-feature map; performing an addition operation on the multiplication results corresponding to each non-zero weight included in the convolution kernel, as the convolution result; The output feature map generating unit is used to generate the output feature map of the convolution layer according to the convolution result.
10. An image processing model storage device based on the method according to claim 8, characterized in that: include: A model acquisition unit, used to acquire the image processing model based on a sparse convolutional neural network to be stored; A parameter group generating unit, for each non-zero weight of the image processing model, generating a parameter group of the non-zero weight according to the non-zero weight, the row number and column number of the non-zero weight in the convolution kernel, and the output channel number of the convolution kernel; A parameter group positioning unit, used to determine the row and column positions of the parameter group in the non-zero weight parameter group matrix according to the input channel number and the output channel number of the non-zero weight; A parameter group storage unit is used to store the parameter group into a memory according to the row and column positions.
Citation Information
Patent Citations
Sparse neural network accelerating system on basis of FPGA (field programmable gate arrays) and method for designing sparse neural network accelerating system
CN108280514A
Processing method and acceleration apparatus
CN108960420A
Apparatus and Method for Achieving Accelerator of Sparse Convolutional Neural Network
US20180157969A1
Neural network convolution computation method and device, and computer-readable storage medium
WO2018107383A1
