Software-Hardware Co-Design for Accelerating Deep Learning Inference
By dividing convolution tasks on the AI chip and performing convolution, batch normalization and nonlinear calculations in parallel computing units, the problem of low computational efficiency of convolutional neural networks in edge devices is solved and efficient convolutional neural networks are achieved Network acceleration.
Patent Information
- Application Number
- CN201911229430.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2019-04-24
- Filing Date
- 2019-12-04
- Publication Date
- 2024-09-06
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
When accelerating the operation of convolutional neural networks, the existing technology relies on the computing power of the data center or software optimization, which is difficult to complete efficiently in edge devices, and data transmission and power consumption are high.
An AI chip is designed, which uses the pooling computing unit by dividing the convolution task into convolution subtasks and pooling subtasks, and performs convolution, batch normalization and nonlinear computing operations respectively in the parallel computing unit. Perform pooling operations, combine results to reduce data transfer, and enable parallel processing of convolutions, batch normalization, and nonlinear calculations.
It effectively accelerates the calculation of convolutional neural networks in edge devices, reduces power consumption and time consumption, avoids dependence on data centers, and improves computing efficiency.
Smart Images

Figure CN111859775B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and more specifically, to an AI chip and a convolutional neural network computing method applied to the AI chip. Background Art
[0002] As a deep learning technology, convolutional neural network (CNN) has been widely used in various scenarios. Due to the relatively high complexity of convolutional neural network, various technologies have been proposed to accelerate the operation of convolutional neural network. At present, the operation of convolutional neural network is mainly run in data centers to utilize the powerful computing power of data centers to achieve the acceleration of convolutional neural network. Alternatively, the operation of convolutional neural network is accelerated by optimizing the software design corresponding to the convolutional neural network algorithm. Summary of the invention
[0003] Embodiments of the present disclosure provide an artificial intelligence chip and a convolutional neural network calculation method applied to the artificial intelligence chip.
[0004] In a first aspect, an embodiment of the present disclosure provides a convolutional neural network computing method applied to an artificial intelligence chip, wherein the artificial intelligence chip includes a processor, at least one parallel computing unit and a pooling computing unit, and the method includes:
[0005] The processor divides the convolution task into at least one convolution subtask and at least one corresponding pooling subtask, and determines a parallel computing unit corresponding to each convolution subtask, wherein the convolution task is configured to perform convolution, batch normalization, nonlinear calculation and pooling operations on the to-be-processed data of the convolution task, the convolution subtask is configured to perform the convolution, batch normalization and nonlinear calculation operations in the convolution task on the to-be-processed data of the convolution subtask, and the pooling subtask is configured to perform the pooling operation in the convolution task on the execution result of the corresponding convolution subtask;
[0006] The processor sends each divided convolution subtask to the parallel computing unit corresponding to the convolution subtask, and controls the parallel computing unit to execute the received convolution subtask;
[0007] The received convolution subtask is executed by the corresponding parallel computing unit, and the execution result is sent to the pooling computing unit as the data to be pooled;
[0008] In response to receiving the indication information sent by the parallel computing unit, the processor sends the pooling parameters of the target pooling subtask to the pooling computing unit, the indication information indicates that the convolution subtask has been completely executed, and controls the pooling computing unit to execute the target pooling subtask, wherein the target pooling subtask refers to the pooling subtask corresponding to the convolution subtask of the parallel computing unit that sent the received indication information;
[0009] The pooling calculation unit executes the corresponding pooling subtask; and sends the execution result to the processor; and
[0010] The processor combines the execution results of the corresponding pooling subtasks received from the pooling calculation unit to obtain the execution result of the convolution task.
[0011] In some implementations, the processor divides the convolution task into at least one convolution subtask and at least one corresponding pooling subtask, and determines a parallel computing unit corresponding to each convolution subtask, further comprising:
[0012] The processor divides the convolution task into at least one convolution subtask and at least one corresponding pooling subtask based on the current running state of the at least one parallel computing unit, and determines a parallel computing unit corresponding to each convolution subtask.
[0013] In some implementations, the computational effort of each convolution subtask is a multiple of 8.
[0014] In some implementations, the processor divides the convolution task into at least one convolution subtask and at least one corresponding pooling subtask based on the current running state of the at least one parallel computing unit, and determines a parallel computing unit corresponding to each convolution subtask, further comprising:
[0015] The processor determines the number of parallel computing units in the at least one parallel computing unit whose current running state is an idle state as the number of idle units;
[0016] The processor divides the convolution task into convolution subtasks whose number is equal to the number of free units and a corresponding number of pooling subtasks; and
[0017] The processor determines each parallel computing unit whose current running state is an idle state as a parallel computing unit corresponding to each convolution subtask in the convolution subtask whose number is equal to the number of idle units.
[0018] In some implementations, the data to be processed in the convolution task is three-dimensional data; and
[0019] Dividing the convolution task into a number of convolution subtasks equal to the number of free units and a corresponding number of pooling subtasks includes:
[0020] Dividing the to-be-processed data of the convolution task into to-be-processed data whose number is equal to the number of free cells along the third dimension; and
[0021] For each piece of data to be processed whose number is equal to the number of free units, a convolution subtask corresponding to the data to be processed is generated, and a pooling subtask corresponding to the generated convolution subtask is generated, wherein the generated convolution subtask is configured to perform the convolution, batch normalization and nonlinear calculation operations in the convolution task on the data to be processed; and the generated pooling subtask is configured to perform the pooling operation in the convolution task on the execution result of the corresponding convolution subtask.
[0022] In some implementations, the data to be processed in the convolution task is a depth image.
[0023] In some embodiments, the nonlinear calculation of the convolution task is a nonlinear calculation implemented by a rectified linear unit.
[0024] In some embodiments, the data to be processed of the convolution task is stored in a cache of the artificial intelligence chip or a memory of an electronic device where the artificial intelligence chip is located.
[0025] In some implementations, executing the received convolution subtask by a corresponding parallel computing unit and sending the execution result as the data to be pooled to the pooling computing unit includes:
[0026] The received convolution subtask is executed by a corresponding parallel computing unit, and the 16-bit floating point format data corresponding to the execution result is sent to the pooling computing unit as the data to be pooled.
[0027] In some implementations, executing the corresponding pooling subtask by the pooling computing unit; and sending the execution result to the processor include:
[0028] The corresponding pooling subtask is executed by the pooling calculation unit; and the 16-bit floating point format data corresponding to the execution result is sent to the processor.
[0029] In a second aspect, an embodiment of the present disclosure provides an artificial intelligence chip, comprising:
[0030] interface;
[0031] a memory having one or more programs stored thereon; and
[0032] One or more processors, operably connected to the interface and the memory, configured to:
[0033] Divide the convolution task into at least one convolution subtask and at least one corresponding pooling subtask, and determine a parallel computing unit corresponding to each convolution subtask, wherein the convolution task is configured to perform convolution, batch normalization, nonlinear calculation and pooling operations on the to-be-processed data of the convolution task, the convolution subtask is configured to perform the convolution, batch normalization and nonlinear calculation operations in the convolution task on the to-be-processed data of the convolution subtask, and the pooling subtask is configured to perform the pooling operation in the convolution task on the execution result of the corresponding convolution subtask;
[0034] Sending each divided convolution subtask to a parallel computing unit corresponding to the convolution subtask, and controlling the parallel computing unit to execute the received convolution subtask;
[0035] In response to receiving the indication information sent by the parallel computing unit, sending the pooling parameters of the target pooling subtask to the pooling computing unit, the indication information indicating that the convolution subtask has been completely executed, and controlling the pooling computing unit to execute the target pooling subtask, wherein the target pooling subtask refers to the pooling subtask corresponding to the convolution subtask of the parallel computing unit that sent the received indication information;
[0036] Merging the execution results of the corresponding pooling subtasks received from the pooling calculation unit to obtain the execution result of the convolution task;
[0037] One or more parallel computing units, which are operably connected to the one or more processors and the memory, and are configured to: execute the received convolution subtask and send the execution result as the data to be pooled to the pooling computing unit; and
[0038] A pooling computing unit is operably connected to the one or more processors, the memory and the one or more parallel computing units, and is configured to execute corresponding pooling subtasks and send execution results to the one or more processors.
[0039] In a third aspect, an embodiment of the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by one or more processors, the one or more processors:
[0040] Divide the convolution task into at least one convolution subtask and at least one corresponding pooling subtask, and determine a parallel computing unit corresponding to each convolution subtask, wherein the convolution task is configured to perform convolution, batch normalization, nonlinear calculation and pooling operations on the to-be-processed data of the convolution task, the convolution subtask is configured to perform the convolution, batch normalization and nonlinear calculation operations in the convolution task on the to-be-processed data of the convolution subtask, and the pooling subtask is configured to perform the pooling operation in the convolution task on the execution result of the corresponding convolution subtask;
[0041] Sending each divided convolution subtask to a parallel computing unit corresponding to the convolution subtask, and controlling the parallel computing unit to execute the received convolution subtask;
[0042] In response to receiving the indication information sent by the parallel computing unit, sending the pooling parameters of the target pooling subtask to the pooling computing unit, the indication information indicating that the convolution subtask has been completely executed, and controlling the pooling computing unit to execute the target pooling subtask, wherein the target pooling subtask refers to the pooling subtask corresponding to the convolution subtask of the parallel computing unit that sent the received indication information;
[0043] The execution results of the corresponding pooling subtasks received from the pooling calculation unit are merged to obtain the execution result of the convolution task.
[0044] The AI chip and the convolutional neural network calculation method applied to the AI chip provided in the embodiments of the present disclosure fully consider the characteristics of the convolutional neural network when designing the AI chip based on the idea of hardware-software co-design. The AI chip includes at least one parallel computing unit that can perform convolution, batch normalization and nonlinear computing operations, and a pooling computing unit that can perform pooling operations. When performing a convolution task, the convolution task is first divided into multiple convolution subtasks and corresponding pooling subtasks based on the idea of first dividing and then fusing. By executing convolution subtasks separately in different parallel computing units, executing convolution, batch normalization and nonlinear computing operations in the convolution subtask in the same parallel computing unit, and then sending the execution results obtained by executing the convolution subtasks by each parallel computing unit to the pooling computing unit, and executing the pooling subtask in the pooling computing unit, and finally, merging the execution results obtained by performing the pooling operation on the execution results output by each convolution subtask by the pooling computing unit, the characteristics that all convolution, batch normalization and nonlinear computing operations in the convolutional neural network involve matrix operations are effectively utilized, thereby realizing convolution, batch normalization and nonlinear computing in the same parallel computing unit, which reduces data transmission, and can more effectively complete the acceleration of the convolutional neural network in the edge device with lower power consumption and less time without the support of the data center. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Other features, objects and advantages of the present disclosure will become more apparent by reading the detailed description of non-limiting embodiments with reference to the accompanying drawings.
[0046] Figure 1 is an exemplary system architecture diagram to which embodiments of the present disclosure may be applied;
[0047] Figure 2 is a flowchart of an implementation of a convolutional neural network computing method applied to an AI chip according to the present disclosure;
[0048] Figure 3 is a schematic diagram of an application scenario of a convolutional neural network computing method applied to an AI chip according to the present disclosure;
[0049] Figure 4 is a flowchart of another embodiment of a convolutional neural network computing method applied to an AI chip according to the present disclosure;
[0050] Figure 5 It is a schematic diagram of the structure of a computer system of an edge device suitable for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION
[0051] Hereinafter, the present disclosure will be further described in detail with reference to the accompanying drawings and embodiments. It should be understood that the preferred embodiments described herein are only for illustration, rather than for limiting the present disclosure. In addition, it should also be noted that, for ease of description, the accompanying drawings only show those parts related to the present disclosure.
[0052] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. Hereinafter, the present disclosure will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
[0053] Figure 1 is an exemplary system architecture 100 according to the present disclosure, in which an implementation of a convolutional neural network computing method applied to an AI chip can be applied.
[0054] like Figure 1 As shown, the system architecture 100 may include a CPU (central processing unit) 101, a bus 102, and AI chips 103 and 104. The bus 102 is configured as a medium for providing a communication link between the CPU 101 and the AI chips 103 and 104. The bus 102 may include various bus types, such as an AMBA (Advanced Microcontroller Bus Architecture) bus, an OCP (Open Core Protocol) bus, and the like.
[0055] The AI chip 103 may include a processor 1031, parallel computing units 1032, 1033, and 1034, a cable 1035, and a pooled computing unit 1036. The cable 1035 is configured as a medium that provides a communication link between the processor 1031, the parallel computing units 1032, 1033, and 1034, and the pooled computing unit 1036. The cable 1035 may include various cable types, for example, a PCI bus, a PCIE bus, an AMBA bus supporting an on-chip network protocol, an OCP bus, and other buses supporting an on-chip network.
[0056] The AI chip 104 may include a processor 1041, parallel computing units 1042, 1043, and 1044, a cable 1045, and a pooled computing unit 1046. The cable 1045 is configured as a medium that provides a communication link between the processor 1041, the parallel computing units 1042, 1043, and 1044, and the pooled computing unit 1046. The cable 1045 may include various cable types, for example, a PCI bus, a PCIE bus, an AMBA bus supporting an on-chip network protocol, an OCP bus, and other buses supporting an on-chip network.
[0057] It should be noted that the convolutional neural network calculation method applied to artificial intelligence chips provided in the embodiments of the present disclosure is usually executed by AI chips 103 and 104.
[0058] It should be understood that Figure 1 The number of processors, buses, and AI chips in the system 100 is only illustrative. Depending on the implementation requirements, any number of CPUs, buses, and AI chips can be provided. Similarly, the number of parallel computing units, cables, processors, and pooled computing units in the AI chips 103 and 104 is also only illustrative. Based on implementation requirements, any number of parallel computing units, cables, processors, and pooled computing units can be provided in the AI chips 103 and 104. In addition, based on implementation requirements, the system architecture 100 may further include a memory, an input device (e.g., a mouse, a keyboard, etc.), an output device (e.g., a display, a speaker, etc.), and an input / output interface, etc.
[0059] As an example, the system architecture 100 can be applicable to various edge devices. For example, the system architecture 100 can be applicable to an AI camera with an AI chip or a door control machine with an AI chip, etc.
[0060] Continue to refer Figure 2 , Figure 2 200 is a flowchart of an embodiment of a convolutional neural network computing method applied to an artificial intelligence chip according to the present disclosure. The convolutional neural network computing method applied to an artificial intelligence chip includes the following steps:
[0061] Step 201: The processor divides the convolution task into at least one convolution subtask and at least one corresponding pooling subtask, and determines a parallel computing unit corresponding to each convolution subtask.
[0062] In this embodiment, the execution body of the convolutional neural network computing method applied to the artificial intelligence chip (for example, Figure 1 The AI chip in the embodiment of the present invention may include a processor, at least one parallel computing unit and a pooling computing unit. In particular, the parallel computing unit has independent operation capabilities and is suitable for matrix operations. For example, a large number of adders and multipliers may be provided in the parallel computing unit. The pooling computing unit also has independent operation capabilities and is suitable for pooling operations.
[0063] In this embodiment, when a convolution task is received, the processor in the AI chip can divide the convolution task into at least one convolution subtask and at least one corresponding pooling subtask in various implementation methods, and determine the parallel computing unit corresponding to each convolution subtask.
[0064] Here, the convolution task can be configured to perform convolution, batch normalization, nonlinear calculation and pooling operations on the data to be processed of the convolution task, the convolution subtask can be configured to perform the convolution, batch normalization and nonlinear calculation operations in the convolution task on the data to be processed of the convolution subtask, and the pooling subtask can be configured to perform the pooling operation in the convolution task on the execution result of the convolution subtask corresponding to the pooling subtask.
[0065] In particular, a convolution task may include the following data: data to be processed of the convolution task (e.g., a digital image or depth image with three color channels), parameter values of various parameters of the convolution operation in the convolution task (e.g., weight parameters and bias of the convolution kernel), parameter values of various parameters of the batch normalization operation in the convolution task, parameter values of various parameters of the nonlinear computing operation in the convolution task, and parameter values of various parameters of the pooling operation in the convolution task.
[0066] Similarly, the convolution subtask may include the following data: the data to be processed of the convolution subtask, the parameter values of various parameters of the convolution operation in the convolution subtask (for example, weight parameters, convolution kernels, and biases), the parameter values of various parameters of the batch normalization operation in the convolution subtask, and the parameter values of various parameters of the nonlinear computing operations in the convolution subtask.
[0067] In addition, the pooling subtask may include the following data: the data to be pooled of the pooling subtask, and the parameter values of various parameters of the pooling operation in the pooling subtask. It should be noted that, here, because when the data to be pooled of the pooling subtask is the execution result of the convolution subtask corresponding to the pooling subtask, the convolution subtask has not been executed, the data to be pooled of the pooling subtask can be set to empty or default values.
[0068] In some optional implementations of this embodiment, the data to be processed of the convolution task can be stored in the cache of the artificial intelligence chip or in the memory of the electronic device where the artificial intelligence chip is located.
[0069] In some optional implementations of this embodiment, the data to be processed in the convolution task may be a depth image.
[0070] In some optional implementations of this embodiment, the nonlinear calculation of the convolution task can be a nonlinear calculation implemented using a rectified linear unit (ReLu).
[0071] It can be understood that, in addition to the pooling operation, the sum of the computational amount of at least one convolution subtask after division can be equal to the computational amount of the convolution task. The sum of the computational amount of at least one pooling subtask after division can also be equal to the computational amount of the pooling operation in the convolution task.
[0072] In some optional implementations of this embodiment, step 201 may be performed as follows:
[0073] The processor in the AI chip can first obtain the number of parallel computing units in the AI chip as the number of parallel computing units. Then, the processor can divide the convolution task into a number of convolution subtasks equal to the number of parallel computing units, and a corresponding number of pooling subtasks. For example, assuming that the sum of the computational amount of convolution, batch normalization, and nonlinear computing operations in the convolution task is C, the computational amount of the pooling operation in the convolution task is P, and the number of parallel computing units is N, then the convolution task can be divided into N convolution subtasks and corresponding N pooling subtasks, where if the remainder when C is divided by N is zero, then the computational amount of each convolution subtask in the N convolution subtasks is the quotient when C is divided by N; if the remainder when C is divided by N is greater than zero, then the computational amount of each convolution subtask in the N-1 convolution subtasks is the quotient when C is divided by N, and the computational amount of 1 convolution subtask is the remainder when C is divided by N.
[0074] Similarly, if the remainder when P is divided by N is zero, the computational amount of each pooling subtask in the N pooling subtasks is the quotient when P is divided by N; if the remainder when P is divided by N is greater than zero, the computational amount of each pooling subtask in the N-1 pooling subtasks is the quotient when P is divided by N, and the computational amount of 1 convolution subtask is the remainder when P is divided by N.
[0075] Here, C, P, and N are all positive integers. It should be noted that the computational amount of the convolution task, the computational amount of the convolution subtask, and the computational amount of the pooling subtask can be determined by the data size of the processed data and the computational complexity of the performed operation. Dividing the convolution task can refer to dividing the data size of the data to be processed by the convolution task or dividing the various operations to be performed by the convolution task.
[0076] In fact, the current running state of the parallel computing unit in the AI chip can be an idle state or a busy state. If the convolution task is assigned to each parallel computing unit according to the above optional implementation method, it is likely that the execution of the received convolution subtask must be suspended until the busy parallel computing unit completes the currently executing task, which affects the execution speed of the convolution task. Therefore, in some optional implementations of this embodiment, step 201 can also be performed as follows: the processor in the AI chip divides the convolution task into at least one convolution subtask and at least one corresponding pooling subtask based on the current running state of at least one parallel computing unit, and determines the parallel computing unit corresponding to each convolution subtask. That is, the convolution subtask should be better assigned to the parallel computing unit in the idle state.
[0077] In fact, the data to be processed of the convolution task is always three-dimensional data. For example, the data to be processed of the convolution task can be a digital image with three color channels (for example, R, G and B channels). For another example, the data to be processed of the convolution task can also be laser point cloud data with three color channels and reflection value intensity. For another example, the data to be processed of the convolution task can also be a depth image with three color channels and depth values. In addition, the convolution operation is always performed on a two-dimensional plane. Therefore, in some implementations, the processor can divide the convolution task into at least one convolution subtask and at least one corresponding pooling subtask as follows: First, the processor can divide the data to be processed of the convolution task into at least one data to be processed along the third dimension; then, for each data to be processed in the at least one data to be processed after the division, the processor can generate a convolution subtask corresponding to the data to be processed, and generate a pooling subtask corresponding to the generated convolution subtask. In particular, the generated convolution subtask refers to performing convolution, batch normalization and nonlinear calculation operations in the convolution task on the processed data; and the generated pooling subtask refers to performing the pooling operation in the convolution task on the execution result of the corresponding convolution subtask.
[0078] In some optional implementations of this embodiment, the computational complexity of each divided convolution subtask can be a multiple of 8, so that executing the convolution subtask in a parallel computing unit can better utilize the computing power of the parallel computing unit.
[0079] Step 202: The processor sends each divided convolution subtask to the parallel computing unit corresponding to the convolution subtask, and controls the parallel computing unit to execute the received convolution subtask.
[0080] In this embodiment, the processor may send each convolution subtask divided in step 201 to a parallel computing unit corresponding to the convolution subtask, and control the parallel computing unit to execute the received convolution subtask.
[0081] In fact, the following data of each convolution subtask can be sent to the parallel computing unit corresponding to the convolution subtask: the data to be processed of the convolution subtask, the parameter values of various parameters of the convolution operation in the convolution subtask, the parameter values of various parameters of the batch normalization operation in the convolution subtask, and the parameter values of various parameters of the nonlinear computing operation in the convolution subtask.
[0082] Step 203: Each parallel computing unit executes the received convolution subtask and sends the execution result as the data to be pooled to the pooling computing unit.
[0083] In this embodiment, after receiving the convolution subtask, each parallel computing unit can execute the received convolution subtask, and send the execution result of the received convolution subtask to the pooling computing unit as the data to be pooled. Here, the execution of the received convolution subtask by each parallel computing unit refers to performing the following operations in each parallel computing unit: first, based on the parameter values of various parameters of the convolution operation in the received convolution subtask, the convolution operation is performed on the to-be-processed data of the received convolution subtask, and then, based on the parameter values of various parameters of the batch normalization operation in the received convolution subtask, a batch normalization operation is performed on the execution result of the convolution operation as the input data of the batch normalization operation, and based on the parameter values of various parameters of the nonlinear computing operation in the received convolution subtask, a nonlinear computing operation is performed on the execution result of the batch normalization operation. The result obtained by the nonlinear computing operation is the execution result of the received convolution subtask. Finally, the execution result is sent to the pooling computing unit as the data to be pooled.
[0084] In some optional implementations of the present embodiment, the parallel computing unit may send 16-bit floating-point format data corresponding to the execution result obtained after fully executing the convolution subtask instead of 32-bit floating-point format data to the pooling computing unit as data to be pooled, which further reduces the required storage space and reduces the amount of calculation, thereby speeding up the pooling operation.
[0085] It should be noted that various nonlinear calculation methods may be used to implement nonlinear calculations. For example, the nonlinear calculation methods here may include but are not limited to the following nonlinear calculation functions: ReLU (rectified linear unit) Sigmoid function and hyperbolic tangent (tanh) function.
[0086] It should be noted that how to perform convolution, batch normalization and nonlinear computing operations on the processed data is a conventional technique that is currently being widely studied and applied and will not be described in detail here.
[0087] Step 204: In response to receiving the indication information, the processor sends the pooling parameters of the target pooling subtask to the pooling calculation unit, and controls the pooling calculation unit to execute the target pooling subtask.
[0088] In this embodiment, after the received convolution subtask has been completely executed, the parallel computing unit can send an indication message to the processor, which indicates that the parallel computing unit has completely executed the received convolution subtask. In this way, when the indication message is received, the processor can send the pooling parameters of the target pooling subtask to the pooling computing unit, and control the pooling computing unit to execute the target pooling subtask. In particular, the target pooling subtask refers to the pooling subtask corresponding to the convolution subtask of the parallel computing unit that sent the received indication message.
[0089] Each pooling subtask in the at least one pooling subtask divided in step 201 includes various parameters of the pooling operation, that is, parameter values of the pooling parameters. Therefore, in step 204, the processor may send the pooling parameters of the target pooling subtask to the pooling calculation unit.
[0090] Step 205: The pooling computing units execute their respective pooling subtasks, and send the execution results to the processor.
[0091] In step 203, the parallel computing unit has sent the data to be pooled to the pooling computing unit; in step 204, the processor has sent the pooling parameters of the pooling subtask to the pooling computing unit; therefore, the pooling computing unit can execute the corresponding pooling subtask under the control of the processor. That is, for each pooling subtask divided in step 201, the pooling computing unit can, under the control of the processor, perform a pooling operation on the execution result after the convolution subtask corresponding to the pooling subtask has been executed in the corresponding parallel computing unit to obtain the execution result of the pooling subtask, and send the execution result to the processor.
[0092] Here, the pooling operation may refer to various pooling operations. For example, the pooling operation may refer to maximum pooling or mean pooling, etc. The pooling parameters in the pooling subtask may include: pooling algorithm, size of pooling area, etc.
[0093] Step 206: The processor combines the execution results of each pooling subtask received from the pooling calculation unit to obtain the execution result of the convolution task.
[0094] In this embodiment, the processor in the AI chip can merge the execution results of each pooling subtask received from the pooling computing unit, where the merged result is used as the execution result of the convolution task. In fact, each execution result of the pooling computing unit is always in the form of a vector. Here, the vector obtained by merging the execution result vectors from the pooling computing unit can be determined as the execution result of the convolution task.
[0095] Continue to refer Figure 3 , Figure 3Schematic diagram of an application scenario of the convolutional neural network calculation method applied to an artificial intelligence chip according to this embodiment. Figure 3In the application scenario, the edge device 301 is equipped with an AI chip 302; the AI chip 302 includes a processor 3021, parallel computing units 3022, 3023 and 3024, and a pooling computing unit 3025. The convolution task 303 is configured to perform convolution, batch normalization, nonlinear calculation and pooling operations on 24×24×24 data to be processed 304. In the process of executing the convolution task 303 by the AI chip 302, first, the processor 3021 divides the convolution task 303 into three convolution subtasks 3031, 3032 and 3033, and corresponding three pooling subtasks 3031', 3032' and 3033'; divides the data to be processed 304 into three data segments to be processed 3041, 3042 and 3043, wherein the data to be processed 3041 is 24×24×8 data obtained by dividing the data to be processed 304 along the third dimension, which is the first 8 data of the data to be processed 304; the data to be processed 3042 is 24×24×8 data obtained by dividing the data to be processed 304 along the third dimension, which is the middle 8 data of the data to be processed 304; and the data to be processed 3043 is 24×24×8 data obtained by dividing the data to be processed 304 along the third dimension, which is the last 8 data of the data to be processed 304. The convolution subtask 3031 is configured to perform convolution, batch normalization and nonlinear computing operations on the processed data 3041, and the convolution subtask 3032 is configured to perform convolution, batch normalization and nonlinear computing operations in the convolution task on the processed data 3042, and the convolution subtask 3033 is configured to perform convolution, batch normalization and nonlinear computing operations in the convolution task on the processed data 3043. The pooling subtask 3031' is configured to perform the pooling operation in the convolution task on the execution result of the convolution subtask 3031. The pooling subtask 3032' is configured to perform the pooling operation in the convolution task on the execution result of the convolution subtask 3032. The pooling subtask 3033' is configured to perform the pooling operation in the convolution task on the execution result of the convolution subtask 3033. Then, the processor 3021 sends the convolution subtasks 3031, 3032 and 3033 to the parallel computing units 3022, 3023 and 3024 respectively; and the parallel computing units 3022, 3023 and 3024 execute the convolution subtasks 3031, 3032 and 3033 respectively to obtain the data to be pooled 3051, 3052 and 3053 respectively. The processor sends the pooling subtasks 3031', 3032' and 3033 to the pooling computing unit respectively, and uses the data to be pooled 3051, 3052 and 3053 as the data to be processed of the pooling subtasks 3031' and 3032' respectively. The pooling computing unit executes the pooling subtasks 3031', 3032' and 3033' respectively to obtain the pooling subtask execution results 3061, 3062 and 3063.Finally, the processor merges the pooling subtask execution results 3061 , 3062 , and 3063 to obtain the convolution task execution result 307 of the convolution task 303 .
[0096] The method provided in the above-mentioned embodiments of the present disclosure fully considers the characteristics of convolutional neural networks. When executing a convolution task, the convolution task is divided into multiple convolution subtasks and corresponding pooling subtasks based on the idea of first dividing and then fusing. By executing the convolution subtasks in different parallel computing units respectively, the convolution, batch normalization and nonlinear calculation operations in the convolution subtask are executed in the same parallel computing unit, and then the execution results obtained by executing the convolution subtasks by each parallel computing unit are sent to the pooling computing unit, and the pooling subtasks are executed in the pooling computing unit. Finally, the execution results obtained by performing the pooling operation on the execution results output by each convolution subtask by the pooling computing unit are merged, and the characteristics of all convolution, batch normalization and nonlinear calculation operations in the convolutional neural network involving matrix operations are effectively utilized, thereby realizing convolution, batch normalization and nonlinear calculation in the same parallel computing unit, which reduces data transmission, and can more effectively complete the acceleration of the convolutional neural network in the edge device with lower power consumption and less time consumption without the support of the data center.
[0097] Continue to refer Figure 4 , Figure 4 400 is a flowchart of another embodiment of a convolutional neural network computing method applied to an artificial intelligence chip. The convolutional neural network computing method applied to an artificial intelligence chip 400 includes the following steps:
[0098] Step 401: The processor determines the number of parallel computing units in the at least one parallel computing unit whose current running state is an idle state as the number of idle units.
[0099] In this embodiment, the execution body of the convolutional neural network computing method applied to the artificial intelligence chip (for example, Figure 1 The AI chip in the embodiment of the present invention may include a processor, at least one parallel computing unit and a pooling computing unit. In particular, the parallel computing unit has independent operation capabilities and is suitable for matrix operations. For example, a large number of adders and multipliers may be provided in the parallel computing unit. The pooling computing unit also has independent operation capabilities and is suitable for pooling operations.
[0100] In this embodiment, when receiving a convolution task, the processor in the AI chip may determine the number of parallel computing units whose current running state is an idle state in at least one parallel computing unit as the number of idle units.
[0101] Step 402: The processor divides the convolution task into convolution subtasks whose number is equal to the number of free units and a corresponding number of pooling subtasks.
[0102] In this embodiment, the processor in the AI chip can use various implementation methods to divide the received convolution task into convolution subtasks whose number is equal to the number of free units determined in step 401, and a corresponding number of pooling subtasks.
[0103] In fact, the data to be processed of the convolution task is always three-dimensional data. For example, the data to be processed of the convolution task can be a digital image with three color channels (for example, R, G, and B channels). For another example, the data to be processed of the convolution task can also be laser point cloud data with three color channels and reflection value intensity. For another example, the data to be processed of the convolution task can also be a depth image with three color channels and depth values. In addition, the convolution operation is always performed on a two-dimensional plane. Therefore, in some implementations, the processor divides the convolution task into a number of convolution subtasks equal to the number of free units and a corresponding number of pooling subtasks, which can also be performed as follows: First, the processor can divide the data to be processed of the convolution task into a number of data to be processed equal to the number of free units along the third dimension; then, for each data to be processed in the data to be processed whose number is equal to the number of free units, the processor can generate a convolution subtask corresponding to the data to be processed and a corresponding pooling subtask. In particular, the generated convolution subtask is configured to perform convolution, batch normalization and nonlinear computing operations in the convolution task on the processed data; and the generated pooling subtask is configured to perform the pooling operation in the convolution task on the execution result of the generated convolution subtask.
[0104] Step 403: The processor determines each parallel computing unit whose current running state is an idle state as a parallel computing unit corresponding to each convolution subtask in the convolution subtask whose number is equal to the number of idle units.
[0105] That is, the convolution subtask is assigned to each parallel computing unit that is currently in an idle state so that the convolution task can be completed as soon as possible.
[0106] Step 404: The processor sends each divided convolution subtask to the parallel computing unit corresponding to the convolution subtask, and controls the parallel computing unit to execute the received convolution subtask.
[0107] Step 405: Each parallel computing unit executes the received convolution subtask and sends the execution result as the data to be pooled to the pooling computing unit.
[0108] Step 406: In response to receiving the indication information, the processor sends the pooling parameters of the target pooling subtask to the pooling calculation unit, and controls the pooling calculation unit to execute the target pooling subtask.
[0109] Step 407: The pooling computing units execute their respective pooling subtasks, and send the execution results to the processor.
[0110] Step 408: The processor combines the execution results of each pooling subtask received from the pooling calculation unit to obtain the execution result of the convolution task.
[0111] In this embodiment, the specific operations of step 404, step 405, step 406, step 407 and step 408 are basically the same as those in step 406. Figure 2 The operations of step 202, step 203, step 204, step 205 and step 206 in the implementation method are the same, so they are not described in detail here.
[0112] from Figure 4 It can be seen that Figure 2 Compared with the implementation in the embodiment, the convolutional neural network computing method applied to the artificial intelligence chip in the embodiment allocates the convolution subtasks to the corresponding idle parallel computing units when dividing the convolution tasks, so that the execution of the convolution tasks does not need to be suspended until the busy parallel computing units have completely executed the current tasks. In this way, the execution speed of the convolution tasks is further accelerated.
[0113] In the following, reference Figure 5 , Figure 5 Schematic diagram of the structure of a computer system 500 suitable for implementing an edge device of an embodiment of the present disclosure. Figure 5 The edge device shown is only an example and should not constitute any limitation on the functionality and scope of use of the embodiments of the present disclosure.
[0114] like Figure 5 As shown, the computer system 500 includes one or more central processing units (CPU) 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a program loaded from a memory portion 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 can also be stored. The CPU 501 can also perform data processing and analysis through at least one artificial intelligence chip 512. The CPU 501, ROM 502, RAM 503 and artificial intelligence chip 512 are interconnected via a bus 504. An input / output (I / O) interface 505 can also be connected to the bus 504.
[0115] A plurality of components are connected to the I / O interface 505, including: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including such as a CRT (cathode ray tube), an LCD (liquid crystal display), and a speaker, etc.; a memory section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN (local area network) card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, and a semiconductor memory, etc., is installed on the drive 510 as needed so that a computer program read therefrom is installed in the memory section 508.
[0116] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product having a computer program carried on a computer-readable medium, the computer program containing a computer code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication portion 509, and / or installed from a removable medium 511. When executed by one or more processors 501, the computer program performs the functions limited in the method of the present disclosure. It should be noted that the computer-readable medium described in the present disclosure can be a computer-readable signal medium or a computer-readable storage medium or any combination thereof. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared or semiconductor system, device or equipment, or any combination thereof. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device or any appropriate combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device, or apparatus. In addition, in the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, wherein a computer-readable program code is carried. The data signal propagated in this manner may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program used by or in combination with an instruction execution system, device, or apparatus. The program code contained on a computer-readable medium may be sent using any suitable medium, including but not limited to: wireless, wired, cable, RF, etc., or any suitable combination thereof.
[0117] One or more programming languages or their combination can be used to compile a computer program code for performing the operation in the present disclosure.Programming languages include object-oriented programming languages (such as Java, Smalltalk, C++), and also include traditional process programming languages (such as "C" language or similar programming languages).Program code can be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, or partially on a user's computer, and partially on a remote computer, or completely on a remote computer or server.In a scenario associated with a remote computer, the remote computer can be connected to the user's computer through any type of network (including a local area network (LAN) or a wide area network (WAN)), or can be connected to an external computer (for example, connected to the Internet through an Internet service provider).
[0118] The flow charts and block diagrams in the accompanying drawings illustrate the system architecture, functions and operations that may be implemented by the system, method and computer program product of various embodiments of the present disclosure. At this point, each frame in the flow chart or block diagram can represent a part of a module, a program segment or a code, wherein a part of a module, a program segment or a code includes one or more executable instructions for implementing a prescribed logical function. It should also be noted that in some alternative implementations, the functions annotated in the frame can also appear in an order different from that shown in the accompanying drawings. For example, two consecutively expressed frames can actually be substantially executed in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each frame in the block diagram and / or flow chart and the combination of frames in the block diagram and / or flow chart can be implemented by a specific hardware-based system for performing a prescribed function or operation, or can be implemented by a combination of specific hardware and computer instructions.
[0119] As another aspect, the present disclosure further provides a computer-readable storage medium, wherein when the computer program is executed by one or more processors, the one or more processors:
[0120] Divide the convolution task into at least one convolution subtask and at least one corresponding pooling subtask, and determine a parallel computing unit corresponding to each convolution subtask, wherein the convolution task is configured to perform convolution, batch normalization, nonlinear calculation and pooling operations on the to-be-processed data of the convolution task, the convolution subtask is configured to perform the convolution, batch normalization and nonlinear calculation operations in the convolution task on the to-be-processed data of the convolution subtask, and the pooling subtask is configured to perform the pooling operation in the convolution task on the execution result of the corresponding convolution subtask;
[0121] Sending each divided convolution subtask to a parallel computing unit corresponding to the convolution subtask, and controlling the parallel computing unit to execute the received convolution subtask;
[0122] In response to receiving the indication information sent by the parallel computing unit, sending the pooling parameters of the target pooling subtask to the pooling computing unit, the indication information indicating that the convolution subtask has been completely executed, and controlling the pooling computing unit to execute the target pooling subtask, wherein the target pooling subtask refers to the pooling subtask corresponding to the convolution subtask of the parallel computing unit that sent the received indication information;
[0123] The execution results of the corresponding pooling subtasks received from the pooling calculation unit are merged to obtain the execution result of the convolution task.
[0124] As another aspect, the present disclosure further provides an artificial intelligence chip, comprising:
[0125] interface;
[0126] a memory having one or more programs stored thereon; and
[0127] One or more processors, operably connected to the interface and the memory, configured to:
[0128] Divide the convolution task into at least one convolution subtask and at least one corresponding pooling subtask, and determine a parallel computing unit corresponding to each convolution subtask, wherein the convolution task is configured to perform convolution, batch normalization, nonlinear calculation and pooling operations on the to-be-processed data of the convolution task, the convolution subtask is configured to perform the convolution, batch normalization and nonlinear calculation operations in the convolution task on the to-be-processed data of the convolution subtask, and the pooling subtask is configured to perform the pooling operation in the convolution task on the execution result of the corresponding convolution subtask;
[0129] Sending each divided convolution subtask to a parallel computing unit corresponding to the convolution subtask, and controlling the parallel computing unit to execute the received convolution subtask;
[0130] In response to receiving the indication information sent by the parallel computing unit, sending the pooling parameters of the target pooling subtask to the pooling computing unit, the indication information indicating that the convolution subtask has been completely executed, and controlling the pooling computing unit to execute the target pooling subtask, wherein the target pooling subtask refers to the pooling subtask corresponding to the convolution subtask of the parallel computing unit that sent the received indication information;
[0131] Merging the execution results of the corresponding pooling subtasks received from the pooling calculation unit to obtain the execution result of the convolution task;
[0132] One or more parallel computing units, which are operably connected to the one or more processors and the memory, and are configured to: execute the received convolution subtask and send the execution result as the data to be pooled to the pooling computing unit; and
[0133] A pooling computing unit is operably connected to the one or more processors, the memory and the one or more parallel computing units, and is configured to execute corresponding pooling subtasks and send execution results to the one or more processors.
[0134] The above description is only an illustration of the preferred embodiments of the present disclosure and the technical principles applied. Those skilled in the art should understand that the scope of the present disclosure is not limited to the technical solutions generated by a specific combination of technical features, and should also cover other technical solutions generated by any combination of technical features or their equivalent features without departing from the concept of the present invention. For example, the technical solutions generated by the mutual replacement of the features disclosed in the present disclosure (not limited thereto) and those technical features with similar functions.
Claims
1. A convolutional neural network calculation method applied to artificial intelligence chips, wherein: The artificial intelligence chip includes a processor, at least one parallel computing unit and a pooling computing unit, and the method includes: The processor divides the convolution task into at least one convolution subtask and at least one corresponding pooling subtask, and determines a parallel computing unit corresponding to each convolution subtask, wherein the convolution task is configured to perform convolution, batch normalization, nonlinear calculation and pooling operations on the to-be-processed data of the convolution task, the convolution subtask is configured to perform the convolution, batch normalization and nonlinear calculation operations in the convolution task on the to-be-processed data of the convolution subtask, and the pooling subtask is configured to perform the pooling operation in the convolution task on the execution result of the corresponding convolution subtask; The processor sends each divided convolution subtask to the parallel computing unit corresponding to the convolution subtask, and controls the parallel computing unit to execute the received convolution subtask; The received convolution subtask is executed by the corresponding parallel computing unit, and the execution result is sent to the pooling computing unit as the data to be pooled; In response to receiving the indication information sent by the parallel computing unit, the processor sends the pooling parameters of the target pooling subtask to the pooling computing unit, the indication information indicates that the convolution subtask has been completely executed, and controls the pooling computing unit to execute the target pooling subtask, wherein the target pooling subtask refers to the pooling subtask corresponding to the convolution subtask of the parallel computing unit that sent the received indication information; The pooling calculation unit executes the corresponding pooling subtask; and sends the execution result to the processor; and The processor combines the execution results of the corresponding pooling subtasks received from the pooling calculation unit to obtain the execution result of the convolution task.
2. The method according to claim 1, wherein: The processor divides the convolution task into at least one convolution subtask and at least one corresponding pooling subtask, and determines a parallel computing unit corresponding to each convolution subtask, including: The processor divides the convolution task into at least one convolution subtask and at least one corresponding pooling subtask based on the current running state of the at least one parallel computing unit, and determines a parallel computing unit corresponding to each convolution subtask.
3. The method according to claim 2, wherein: The computational effort of each convolution subtask is a multiple of 8.
4. The method according to claim 3, wherein: The processor divides the convolution task into at least one convolution subtask and at least one corresponding pooling subtask based on the current running state of the at least one parallel computing unit, and determines a parallel computing unit corresponding to each convolution subtask, further comprising: The processor determines the number of parallel computing units in the at least one parallel computing unit whose current running state is an idle state as the number of idle units; The processor divides the convolution task into convolution subtasks whose number is equal to the number of free units and a corresponding number of pooling subtasks; and The processor determines each parallel computing unit whose current running state is an idle state as a parallel computing unit corresponding to each convolution subtask in the convolution subtask whose number is equal to the number of idle units.
5. The method according to claim 4, wherein: The data to be processed in the convolution task is three-dimensional data; and Dividing the convolution task into a number of convolution subtasks equal to the number of free units and a corresponding number of pooling subtasks includes: Dividing the to-be-processed data of the convolution task into to-be-processed data whose number is equal to the number of free cells along the third dimension; and For each piece of to-be-processed data whose number is equal to the number of free units, a convolution subtask corresponding to the to-be-processed data is generated, and a pooling subtask corresponding to the generated convolution subtask is generated, wherein the generated convolution subtask is configured to perform the convolution, batch normalization and nonlinear calculation operations in the convolution task on the to-be-processed data; and the generated pooling subtask is configured to perform the pooling operation in the convolution task on the execution result of the corresponding convolution subtask.
6. The method according to claim 5, wherein: The data to be processed for the convolution task is a depth image.
7. The method according to claim 6, wherein: The nonlinear calculation of the convolution task is a nonlinear calculation implemented by a rectified linear unit.
8. The method according to claim 7, wherein: The data to be processed of the convolution task is stored in the cache of the artificial intelligence chip or the memory of the electronic device where the artificial intelligence chip is located.
9. The method according to claim 8, wherein: The received convolution subtask is executed by a corresponding parallel computing unit, and the execution result is sent to the pooling computing unit as the data to be pooled, including: The received convolution subtask is executed by a corresponding parallel computing unit, and the 16-bit floating point format data corresponding to the execution result is sent to the pooling computing unit as the data to be pooled.
10. The method according to claim 9, wherein: The pooling calculation unit performs the corresponding pooling subtask; and sending the execution result to the processor, comprising: The pooling calculation unit executes the corresponding pooling subtask; And sending 16-bit floating point format data corresponding to the execution result to the processor.
11. An artificial intelligence chip, comprising: interface; a memory having one or more programs stored therein; as well as One or more processors, operably connected to the interface and the memory, configured to: Divide the convolution task into at least one convolution subtask and at least one corresponding pooling subtask, and determine a parallel computing unit corresponding to each convolution subtask, wherein the convolution task is configured to perform convolution, batch normalization, nonlinear calculation and pooling operations on the to-be-processed data of the convolution task, the convolution subtask is configured to perform the convolution, batch normalization and nonlinear calculation operations in the convolution task on the to-be-processed data of the convolution subtask, and the pooling subtask is configured to perform the pooling operation in the convolution task on the execution result of the corresponding convolution subtask; Sending each divided convolution subtask to a parallel computing unit corresponding to the convolution subtask, and controlling the parallel computing unit to execute the received convolution subtask; In response to receiving the indication information sent by the parallel computing unit, sending the pooling parameters of the target pooling subtask to the pooling computing unit, the indication information indicating that the convolution subtask has been completely executed, and controlling the pooling computing unit to execute the target pooling subtask, wherein the target pooling subtask refers to the pooling subtask corresponding to the convolution subtask of the parallel computing unit that sent the received indication information; Merging the execution results of the corresponding pooling subtasks received from the pooling computing unit to obtain the execution result of the convolution task; one or more parallel computing units, which are operably connected to the one or more processors and the memory, and are configured to: execute the received convolution subtasks and send the execution results as data to be pooled to the pooling computing unit; and A pooling computing unit is operably connected to the one or more processors, the memory and the one or more parallel computing units, and is configured to execute corresponding pooling subtasks and send execution results to the one or more processors.
12. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by one or more processors, the one or more processors are caused to: Divide the convolution task into at least one convolution subtask and at least one corresponding pooling subtask, and determine a parallel computing unit corresponding to each convolution subtask, wherein the convolution task is configured to perform convolution, batch normalization, nonlinear calculation and pooling operations on the to-be-processed data of the convolution task, the convolution subtask is configured to perform the convolution, batch normalization and nonlinear calculation operations in the convolution task on the to-be-processed data of the convolution subtask, and the pooling subtask is configured to perform the pooling operation in the convolution task on the execution result of the corresponding convolution subtask; Sending each divided convolution subtask to a parallel computing unit corresponding to the convolution subtask, and controlling the parallel computing unit to execute the received convolution subtask; In response to receiving the indication information sent by the parallel computing unit, sending the pooling parameters of the target pooling subtask to the pooling computing unit, the indication information indicating that the convolution subtask has been completely executed, and controlling the pooling computing unit to execute the target pooling subtask, wherein the target pooling subtask refers to the pooling subtask corresponding to the convolution subtask of the parallel computing unit that sent the received indication information; The execution results of the corresponding pooling subtasks received from the pooling calculation unit are merged to obtain the execution result of the convolution task.
