Data intelligent model training and hardware acceleration method and system based on artificial intelligence

Through model pruning, quantification and hardware acceleration technology, combined with CPU, GPU and FPGA, the deep convolutional neural network model is optimized, solving the problems of computational complexity and power consumption of deep neural networks, and achieving efficient reasoning capabilities and low energy consumption. Suitable for resource-constrained applications.

CN118657186AActive Publication Date: 2024-09-17GUANGZHOU JIAXIN INTELLIGENT TECH CO LTD

Patent Information

Application Number
CN202411109987.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-09-17
Estimated Expiration
2044-08-14

AI Technical Summary

Technical Problem

Deep neural networks have challenges in terms of computational complexity and power consumption. They are especially difficult to deploy in resource-constrained scenarios, and activation functions have high hardware requirements, making it difficult to optimize computational efficiency and energy consumption.

Method used

Through model pruning, quantification, knowledge distillation and hardware acceleration technology, a lightweight deep convolutional neural network model is designed, and combined with hardware accelerators of CPU, GPU and FPGA, the filter channel and activation function are dynamically adjusted to optimize the model structure and implement hardware Efficient use of resources.

Benefits of technology

It significantly improves computing efficiency and hardware resource utilization, reduces the amount of model parameters and computing overhead, maintains model accuracy, is suitable for resource-constrained embedded systems and edge computing scenarios, and improves response speed and adaptability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657186A
    Figure CN118657186A
Patent Text Reader

Abstract

The invention relates to the field of artificial intelligence, and particularly discloses an artificial intelligence-based data intelligent model training and hardware acceleration method, which comprises the steps of setting a network structure of an original deep convolutional neural network model DNN; a convolutional neural network model is obtained through first training; performing stage and category division to obtain blocks; calculating the size and pruning weight of a filter filtering channel of each category of convolutional layer in each block; executing a reasoning task by using the pruned intelligent model; selecting a corresponding activation function according to the task type; quantification and knowledge distillation are carried out; and designing a universal hardware accelerator, and deploying the optimized deep convolutional neural network model DNN in the FPGA. According to the invention, through construction of the network structure of the deep convolutional neural network model DNN, a plurality of activation function general hardware architectures are designed, so that the weight is lighter, the expression ability of the convolutional neural network is improved, and the intelligent level can be accurately improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence, and in particular, to a data intelligence model training and hardware acceleration method based on artificial intelligence. Background Art

[0002] The rapid development of deep neural networks (DNNs) has led to more and more people engaging in related research work, and it has made great progress in the fields of target detection, natural language processing, computer vision, etc. With the development of integrated circuits and the continuous improvement of computer processing capabilities, neural networks have once again become a hot spot in the development of artificial intelligence research.

[0003] However, a neural network contains a series of hidden layers that work in parallel, and each hidden layer contains a large number of neurons. Each neuron obtains input from other neurons and then calculates output. Therefore, an activation function is used to increase its expressive power and make it truly meaningful. However, activation functions have their own advantages and disadvantages. They are divided into linear and nonlinear ones, and the hardware requirements and implementation difficulties are different. At the same time, in order to further improve the performance of neural networks, the structural design of neural network models is becoming more and more complex, and the number of network layers is increasing. This makes the calculation of neural network algorithms more complex and difficult to deploy in scenarios with strict power consumption requirements.

[0004] Therefore, there is a need for a general activation function hardware accelerator that is suitable for DNN and can improve computing efficiency, reduce power consumption, and minimize storage resources. Summary of the invention

[0005] In view of this, the present invention provides a data intelligence model training and hardware acceleration method based on artificial intelligence, the purposes of which are: (1) to propose a data intelligence model training and hardware acceleration method based on artificial intelligence, by constructing a network structure of a deep convolutional neural network model DNN, so that it can accurately improve the intelligence level while being more lightweight; (2) to design a universal hardware architecture for multiple activation functions, so as to improve the expressive power of the convolutional neural network and make it have the true meaning of artificial intelligence.

[0006] To achieve the above purpose, the present invention provides a data intelligence model training and hardware acceleration method based on artificial intelligence, comprising the following steps:

[0007] Step S1, setting the network structure of the original deep convolutional neural network model DNN, and initializing the original deep convolutional neural network model DNN by randomly taking weights;

[0008] Step S2, collecting control instructions and network parameters of historical task data, inputting them into the task queue, and obtaining network weights after the first training, which are used to obtain the convolutional neural network model after the first training;

[0009] Step S3, dividing the convolutional layers of the convolutional neural network model DNN after the first training into stages and categories according to the commonality of the attributes of each convolutional layer, thereby obtaining blocks;

[0010] Step S4, calculating the filter channel size and pruning weight of each category convolution layer in each block, and screening the importance of weights by using a filter that can adjust the filter channel size;

[0011] Step S5: Use the pruned intelligent model to perform the reasoning task. If the reasoning task is not satisfied, adjust the filter channel size.

[0012] Step S6: Select the corresponding activation function according to the task type and retrain the optimized neural network model;

[0013] Step S7: quantizing the deep convolutional neural network model DNN after pruning;

[0014] Step S8, performing knowledge distillation and optimization on the network structure of the quantized deep convolutional neural network model DNN;

[0015] Step S9, designing a general hardware accelerator, wherein the integrated circuit of the general hardware accelerator is composed of a CPU, a GPU and a field programmable gate array FPGA, the linear training task is completed by the CPU, and the nonlinear training task is completed by the GPU;

[0016] Step S10, deploying the optimized deep convolutional neural network model DNN in the FPGA; according to the optimized deep convolutional neural network model DNN and the resource constraints of the FPGA, selecting the corresponding hardware parallelization structure, including a computing unit, a control unit and a storage unit, and deploying the optimized deep convolutional neural network model DNN in the FPGA to achieve hardware acceleration.

[0017] As a further improvement method of the present invention:

[0018] Optionally, step S3, dividing the convolutional layers of the first trained convolutional neural network model DNN into stages and categories according to the commonality of the attributes of each convolutional layer, includes:

[0019] S31, grouping according to the size of the input feature map, and grouping the convolutional layers with the same size of the input feature map into one stage;

[0020] S32, for the convolutional layers after the division stage, grouping and adjusting according to the size of the convolution kernel and the size of the adjacent pooling layer, and grouping the convolutional layers with the same convolution kernel size and the pooling layers with the same pooling layer size into one large category;

[0021] S33, within each major category, according to the residual connection characteristics, all convolutional layers within a residual connection span are grouped into one block; finally, within each block, each convolutional layer is considered separately.

[0022] As a further improvement method of the present invention:

[0023] Optionally, in step S4, the filter channel size and pruning weight of each category convolution layer in each block are calculated, and the importance of the weight is screened by using a filter capable of adjusting the filter channel size, including:

[0024] S41, set the initial size of the filter channel to ,in, is the convolution kernel size, k is the preset coefficient;

[0025] S42: training the obtained network architecture of the deep convolutional neural network model DNN until convergence;

[0026] S43: According to the formula Calculate the contribution of each parameter, where the error ; is the weight from neuron i to neuron j; , , is a collection of index pairs; The contribution of each parameter; , represents the connection of one or more neurons that are selected for control; is the predetermined disturbance parameter vector Elements in It is the second-order derivative on the diagonal of the Hessian matrix H in the deep convolutional neural network model DNN;

[0027] S44: Sort the parameters by contribution and delete some parameters with low contribution to screen the importance of weights, cut off unimportant neurons, establish a local model of the error function to predict the impact of the perturbation parameters on the optimization target, and find the neuron with the least impact on the loss from the loss;

[0028] S45: Iterate to step S41, re-participate in the operation, and update the deep convolutional neural network model DNN again.

[0029] As a further improvement method of the present invention:

[0030] Optionally, in step S5, the pruned intelligent model is used to perform the reasoning task, and when the reasoning task is not satisfied, the filter channel size is adjusted, including:

[0031] S51, according to the formula Calculate the preset error of the reasoning task at each stage , preset threshold , then the cumulative error ; s is the number of stages;

[0032] S52: When When adjusting the filter channel size, the parameters are adjusted to make the preset coefficient k=k+0.1;

[0033] S53: Iterate step S52 until Until then, re-participate in the calculation and update the deep convolutional neural network model DNN again.

[0034] As a further improvement method of the present invention:

[0035] Optionally, the step S6 selects a corresponding activation function according to the task type and retrains the optimized neural network model, including: selecting a corresponding activation function according to the selection signal, the activation function including Sgn function, Sigmoid function, Tanh function,

[0036] in,

[0037] The Sgn function expression is: ;

[0038] The Sigmoid function expression is: ;

[0039] The Tanh function expression is: ;

[0040] Among them, x is the input of the neuron, w is the neuron weight, p is the bias coefficient; e represents the exponential function;

[0041] The selection signal is set to be two bits wide.

[0042] As a further improvement method of the present invention:

[0043] Optionally, the step S7 quantizes the deep convolutional neural network model DNN after pruning, including: converting the floating-point parameters in the network into int integers that are more friendly to hardware parallel computing for calculation, extracting parameters, biases and feature map data from the lightweight model, dynamically solving the quantization factor of each group of data according to the established quantization bit width, and reloading all data into the deep convolutional neural network model DNN after using the quantization method; and then retraining and fine-tuning the quantized model to restore the original performance. The quantization formula is:

[0044] ;

[0045] W i = ∑ n = 1 N R n [ idx i ( n )] ;

[0046] ;

[0047] Among them, r i and r i-1 is the value range of the quantized weight R n adjacent values ​​within; n is an integer, M is the quantization bit width of the weight value, and N is the number of segments after weight quantization, which is used to determine the quantization value range; Indicates indexing function through NB bit; represents the absolute value function; is the original weight of the neural network model; The weights of the neural network model are quantized, R n A collection of value ranges.

[0048] As a further improvement method of the present invention:

[0049] Optionally, the step S8, performing knowledge distillation and optimization on the network structure of the quantized deep convolutional neural network model DNN, includes:

[0050] Distilled in a teacher-student integration way, specifically:

[0051] The teacher model is trained on the dataset D. For the classifier, the neural network output before softmax is taken and used as a soft target to guide the student model training. Through the attention mechanism, the teacher's attention map information is used to supervise the training of the student model to achieve the transfer of spatial information. In addition, the temperature scaling Temptature scaler is used to scale the soft target to obtain a more peaceful soft target distribution, which can further improve the student model performance, as shown in the following formula:

[0052] The loss function is:

[0053] ;

[0054] is the attention map of the teacher network, is the attention map of the student network, h and f are the width and height of the attention map respectively; the overall loss function Loss of the student model includes two parts: the cross entropy with the soft target and the cross entropy with the ground truth. After training, the smaller student model can achieve the same or close performance as the complex teacher model;

[0055] The network structure of the deep convolutional neural network model DNN includes an input layer, an output layer, 3N convolutional layers, 2N pooling layers, 2N fully connected layers and a Gaussian connection layer, wherein a convolutional layer is connected to an adjacent pooling layer, and then to an adjacent convolutional layer;

[0056] The step S9 is to design a general hardware accelerator, wherein the general hardware accelerator includes an input signal part, a bias unit register, an effective weight selection unit, a SUM unit, an output data processing unit, and an output unit; wherein the bias unit register is connected in parallel with the effective weight selection unit.

[0057] As a further improvement method of the present invention:

[0058] Optionally, the present invention further provides a data intelligence model training and hardware acceleration system based on artificial intelligence, comprising:

[0059] The original network structure module sets the network structure of the original deep convolutional neural network model DNN, and the weights are randomly selected to initialize the original deep convolutional neural network model DNN;

[0060] The intermediate network structure module collects the control instructions and network parameters of historical task data, inputs them into the task queue, and obtains the network weights after the first training, which are used to obtain the convolutional neural network model after the first training;

[0061] The block division unit divides the convolutional layers of the first trained convolutional neural network model DNN into stages and categories according to the common properties of each convolutional layer, thereby obtaining blocks;

[0062] The screening unit calculates the filter channel size and pruning weight of each category of the convolutional layer in each block, and screens the importance of the weights through filters that can adjust the filter channel size;

[0063] Adjustment unit: Use the pruned intelligent model to perform reasoning tasks. If the reasoning task is not met, adjust the filter channel size.

[0064] Retraining unit: select the corresponding activation function according to the task type and retrain the optimized neural network model;

[0065] Quantization unit: quantize the deep convolutional neural network model DNN after pruning;

[0066] The optimization unit performs knowledge distillation and optimization on the network structure of the quantized deep convolutional neural network model DNN;

[0067] Integrated circuit module, designing a general hardware accelerator, wherein the integrated circuit of the general hardware accelerator is composed of a CPU, a GPU and a field programmable gate array FPGA, the linear training task is completed by the CPU, and the nonlinear training task is completed by the GPU;

[0068] The accelerator module deploys the optimized deep convolutional neural network model DNN in the FPGA; according to the resource limitations of the optimized deep convolutional neural network model DNN and the FPGA, the corresponding hardware parallelization structure is selected, including the computing unit, the control unit and the storage unit, and the optimized deep convolutional neural network model DNN is deployed in the FPGA to achieve hardware acceleration.

[0069] In order to solve the above problem, the present invention provides an electronic device, the electronic device comprising:

[0070] A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the artificial intelligence-based data intelligence model training and hardware acceleration method when executing the computer program.

[0071] In order to solve the above problems, the present invention also provides a computer-readable storage medium, in which at least one instruction is stored. The at least one instruction is executed by a processor in an electronic device to implement the steps of the artificial intelligence-based data intelligence model training and hardware acceleration method.

[0072] This solution proposes a data intelligence model training and hardware acceleration method based on artificial intelligence, which can achieve the following beneficial technical effects:

[0073] (1) The data intelligence model training and hardware acceleration method based on artificial intelligence of the present invention significantly improves the computational efficiency and hardware resource utilization of the deep convolutional neural network model in reasoning tasks by innovatively combining model pruning, quantization, knowledge distillation and hardware acceleration technologies. Compared with traditional methods, the present invention can significantly reduce the number of model parameters and computational overhead while maintaining model accuracy, especially on resource-constrained embedded systems or FPGAs, achieving more efficient reasoning capabilities and lower energy consumption. In addition, by dynamically adjusting the filter channel and adaptively selecting the activation function, the method can optimize the model structure according to specific task requirements, further improving the response speed and adaptability of the system. Therefore, the present invention has broad application prospects and significant technical advantages in smart devices, edge computing and other applications with high requirements for real-time performance and resource efficiency.

[0074] (2) The present invention constructs a network structure of a deep convolutional neural network model DNN, making it more lightweight and accurately improving the level of intelligence. At the same time, this solution designs a universal hardware architecture for multiple activation functions, which improves the expressive power of convolutional neural networks while making them truly meaningful as artificial intelligence. By introducing the stage and category division of convolutional layers and filter channel pruning technology: The present invention divides the convolutional layers of the deep convolutional neural network into stages and categories, combines the calculation of the filter channel size of each convolutional layer and performs weight pruning, greatly reducing the redundant parameters of the model, significantly reducing the computational complexity of the model, and maintaining the prediction accuracy of the model.

[0075] (3) The present invention combines quantization and knowledge distillation to optimize the network structure. On the basis of quantizing the pruned network model, the present invention optimizes the quantized network structure through knowledge distillation technology, thereby further improving the accuracy and reasoning performance of the model while keeping the model lightweight, especially realizing efficient reasoning calculation on resource-constrained hardware platforms.

[0076] (4) The present invention designs a general hardware accelerator and performs dynamic adaptive optimization. By designing a general hardware accelerator that integrates CPU, GPU and FPGA, combined with an adaptive optimization strategy that dynamically adjusts the filter channel and selects the activation function, the model can dynamically adapt to hardware resource limitations according to task requirements, achieving more efficient computing parallelism and lower energy consumption, showing great advantages in embedded systems and edge computing scenarios. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Figure 1 A flowchart of a data intelligence model training and hardware acceleration method based on artificial intelligence provided by one embodiment of the present invention;

[0078] Figure 2 A schematic diagram of the functional modules of a data intelligence model training and hardware acceleration method based on artificial intelligence provided by an embodiment of the present invention;

[0079] Figure 3 A schematic diagram of the structure of an electronic device for implementing an artificial intelligence-based data intelligence model training and hardware acceleration method provided by one embodiment of the present invention.

[0080] In the figure: 1 original network structure module, 2 intermediate network structure module, 3 block unit, 4 screening unit, 5 adjustment unit, 6 retraining unit, 7 quantization unit, 8 optimization unit, 9 integrated circuit module, 10 accelerator module;

[0081] 100 electronic device, 101 processor, 11 memory, 12 program, 13 communication interface.

[0082] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0083] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0084] The embodiment of the present application provides a data intelligence model training and hardware acceleration method based on artificial intelligence. The execution subject of the method includes but is not limited to at least one of the electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiment of the present application. In other words, the method can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc.

[0085] Embodiment 1:

[0086] Step S1, setting the network structure of the original deep convolutional neural network model DNN, and initializing the original deep convolutional neural network model DNN by randomly taking weights.

[0087] Specifically, artificial neural networks complete network calculations through the weights of neurons in the network. These calculation processes can complete specific functions, which is called the prediction process. Before the prediction process, the neural network needs to complete the calculation of network weights through a specific algorithm, which is called the training process. The weights of the original deep convolutional neural network model DNN, that is, the initial deep convolutional neural network model, can be obtained by assigning arbitrary functions, and then the accurate weight values ​​can be obtained through training.

[0088] Step S2, collect control instructions and network parameters of historical task data, input them into the task queue, obtain network weights after the first training, and use them to obtain the convolutional neural network model after the first training.

[0089] A deep neural network is an artificial neural network with multiple layers between the input layer and the output layer. DNNs find the right mathematical operation to transform inputs into outputs, whether they are linear or nonlinear relationships. A deep neural network goes through each layer, calculating the probability of each output. Specifically, a DNN trained to identify dog ​​breeds will go through a given image and calculate the probability that the dog in the image is a specific breed. The user can review the results and select the probability that the network should display (above a certain threshold, etc.) and return the labels suggested by the experiment.

[0090] Each mathematical operation is considered a layer, and complex DNNs have many layers, so they are called "deep" networks. DNNs synthesize models by learning complex nonlinear relationships. These models are usually composed of multiple specific layers, each layer has corresponding features, and it is known that as the number of layers increases, the model completes better, but there are also some shallow networks that can model with fewer units to process complex data. DNNs are usually feedforward neural networks, and data is transmitted from front to back without looping. There is a mutual mapping relationship between neurons in DNNs, and this mapping connection is initially a random value, that is, the weight of the neural network. The weight is multiplied by the output of the previous neuron to obtain the input of the next neuron, where the product is usually between 0 and 1. If the current network cannot achieve the expected effect, the algorithm will adjust the weights between neurons until the training achieves the expected effect.

[0091] Step S3, dividing the convolutional layers of the convolutional neural network model DNN after the first training into stages and categories according to the commonalities of the attributes of each convolutional layer, so as to obtain blocks.

[0092] Specifically, for step S3, the convolutional layers of the convolutional neural network model DNN after the first training are divided into stages and categories according to the common properties of each convolutional layer, including:

[0093] S31, grouping according to the size of the input feature map, and grouping the convolutional layers with the same size of the input feature map into one stage;

[0094] S32, for the convolutional layers after the division stage, grouping and adjusting according to the size of the convolution kernel and the size of the adjacent pooling layer, and grouping the convolutional layers with the same convolution kernel size and the pooling layers with the same pooling layer size into one large category;

[0095] S33, within each major category, according to the residual connection characteristics, all convolutional layers within a residual connection span are grouped into one block; finally, within each block, each convolutional layer is calculated separately.

[0096] In one embodiment, a deep convolutional neural network model DNN is used for image classification tasks. The model consists of multiple convolutional layers, pooling layers and fully connected layers. According to step S3 of the present invention, these convolutional layers are divided into stages and categories in the following manner:

[0097] Step S31 - Grouping of input feature map sizes: There are three convolutional layers in the model, and their input feature map sizes are 32x32, 16x16, and 8x8 respectively. In this step, convolutional layers with the same input feature map size are first grouped into one stage. For example, all convolutional layers with feature map size of 32x32 are grouped into stage 1, convolutional layers with 16x16 are grouped into stage 2, and convolutional layers with 8x8 are grouped into stage 3.

[0098] Step S32 - Grouping and adjusting kernel size and pooling layer size: In each stage, further grouping and adjusting are performed based on kernel size and adjacent pooling layer size. For example, in stage 1, there are two convolution layers with kernel sizes of 3x3 and 5x5. The adjacent pooling layers have sizes of 2x2 and 3x3. Convolution layers with the same kernel size are grouped together, and pooling layers with the same pooling layer size are grouped together. Assume that in stage 1, all convolution layers with pooling layer size of 2x2 are grouped into class A, and all convolution layers with pooling layer size of 3x3 are grouped into class B.

[0099] Step S33 - Blocking by residual connection feature: Within each category, the convolutional layers are further divided into blocks according to the residual connection feature. Residual connection refers to the connection method in deep neural networks where the output of some layers is directly passed to subsequent layers without passing through the intermediate layers. In category A, there are three convolutional layers that use the residual connection feature, and their residual connection spans are the same. These convolutional layers are grouped into the same block. For other convolutional layers in category B, similar block division is performed according to their residual connection features.

[0100] In one embodiment, a convolutional neural network model DNN is used to recognize handwritten digits. The input of the model is a 28x28 grayscale image. The model contains 10 convolutional layers, which are distributed in different stages and categories. Through the division of the above S3 step, the following classification results can be obtained:

[0101] Stage 1 (28x28 feature map size): Category A: contains two convolutional layers with a kernel size of 3x3, adjacent pooling layers with a size of 2x2, and residual connections. Category B: contains one convolutional layer with a kernel size of 5x5 and adjacent pooling layers with a size of 3x3.

[0102] Stage 2 (14x14 feature map size): Category C: Contains three convolutional layers with a kernel size of 3x3, adjacent pooling layers of size 2x2, and no residual connections.

[0103] Stage 3 (7x7 feature map size): Large category D: Contains four convolutional layers, the convolution kernel size is 3x3, the adjacent pooling layer size is 2x2, and some convolutional layers use residual connections. In each block, the weights of each convolutional layer are calculated separately, and the model structure is further optimized to improve the overall inference speed and accuracy.

[0104] Step S4, calculating the filter channel size and pruning weight of each category convolution layer in each block, and screening the importance of weights through filters that can adjust the filter channel size.

[0105] For the calculation of the filter channel size and pruning weight of each category convolution layer in each block in step S4, the importance of weights is screened by using filters that can adjust the filter channel size, including:

[0106] S41, set the initial size of the filter channel to ,in, is the convolution kernel size, k is the preset coefficient;

[0107] S42: training the obtained network architecture of the deep convolutional neural network model DNN until convergence;

[0108] S43: According to the formula Calculate the contribution of each parameter, where the error ; is the weight from neuron i to neuron j; , , is a collection of index pairs; The contribution of each parameter; , represents the connection of one or more neurons that are selected for control; is the predetermined disturbance parameter vector Elements in It is the second-order derivative on the diagonal of the Hessian matrix H in the deep convolutional neural network model DNN;

[0109] S44: Sort the parameters by contribution and delete some parameters with low contribution to screen the importance of weights, cut off unimportant neurons, establish a local model of the error function to predict the impact of the perturbation parameters on the optimization target, and find the neuron with the least impact on the loss from the loss;

[0110] S45: Iterate to step S41, re-participate in the operation, and update the deep convolutional neural network model DNN again.

[0111] In one embodiment, a convolutional neural network model DNN is used for road sign recognition in an autonomous vehicle, and a block of the model contains 5 convolutional layers, and the filter channel size of each convolutional layer is 64. The initial channel size is set in step S41, and the model is trained in step S42 until the model performs stably on the validation set. In step S43, after calculating the contribution of each filter channel, it is found that 15 channels have little effect on the recognition accuracy, and may even reduce the overall performance due to overfitting. Therefore, in step S44, these 15 low-contribution channels are cut off and 49 high-contribution channels are retained. After several such iterations, the complexity of the model is significantly reduced, and the performance in real driving scenarios remains excellent.

[0112] Step S5: Use the pruned intelligent model to perform the reasoning task. If the reasoning task is not satisfied, adjust the filter channel size.

[0113] In step S5, when the inference task is performed using the pruned intelligent model, if the inference task is not satisfied, the filter channel size is adjusted, including:

[0114] S51, according to the formula Calculate the preset error of the reasoning task at each stage , preset threshold , then the cumulative error ; s is the number of stages;

[0115] S52: When When adjusting the filter channel size, the parameters are adjusted to make the preset coefficient k=k+0.1;

[0116] S53: Iterate step S52 until Until then, re-participate in the calculation and update the deep convolutional neural network model DNN again.

[0117] Step S6: Select the corresponding activation function according to the task type and retrain the optimized neural network model.

[0118] Step S6 selects the corresponding activation function according to the task type and retrains the optimized neural network model, including: selecting the corresponding activation function according to the selection signal, the activation function includes Sgn function, Sigmoid function, Tanh function,

[0119] in,

[0120] The Sgn function expression is: ;

[0121] The Sigmoid function expression is: ;

[0122] The Tanh function expression is: ;

[0123] Wherein, x is the input of the neuron, w is the neuron weight, p is the bias coefficient; e represents an exponential function; and the selection signal is set to be two bits wide.

[0124] In deep learning models, the activation function is a key component that determines how the output of a neuron affects the next level of the network. In different tasks, choosing a suitable activation function can significantly affect the performance and convergence speed of the model. Step S6 describes how to select a suitable activation function based on the task type and retrain the optimized neural network model. The following is a specific operation description and example: Task type and activation function selection:

[0125] Sgn function: Suitable for binary classification tasks. The Sgn function limits the output value to between -1 and 1, and is suitable for tasks that output clear positive and negative categories, such as black and white binary conversion of images, binary classification, etc.

[0126] Sigmoid function: Suitable for classification tasks that require probability output. The Sigmoid function limits the output value to between 0 and 1. It is often used in binary classification problems or scenarios that require output probability values, such as determining whether an image contains a specific object.

[0127] Tanh function: Suitable for tasks that require symmetrical processing of positive and negative values. The Tanh function limits the output value to between -1 and 1, and is suitable for tasks that require normalization of input data and maintain data symmetry, such as sentiment score calculation in text sentiment analysis.

[0128] The selection signal is used to automatically select the appropriate activation function based on the task requirements. For example, in a comprehensive neural network system, the model will generate a selection signal based on the input task type. This signal can be a flag or a coded value. Based on this signal, the model automatically selects the corresponding activation function and applies it to the output layer of neurons. Once the appropriate activation function is selected, the model will readjust the weight parameters of the network according to the new activation function and retrain to ensure that the model performs best on the specific task.

[0129] In one embodiment, to determine whether a picture contains a cat, the activation function is first selected. For such a binary classification task, the system generates a selection signal and selects the Sgn function as the activation function because the function can directly output a clear classification result of -1 or 1. After selecting the Sgn function, the model is retrained on a data set containing a large number of cat and non-cat pictures, and the model can eventually quickly and accurately determine whether there is a cat in the input picture.

[0130] Step S7: quantize the deep convolutional neural network model DNN after pruning.

[0131] In step S7, the pruned deep convolutional neural network model DNN is quantized, including: converting the floating-point parameters in the network into int integers that are more friendly to hardware parallel computing for calculation, extracting parameters, biases and feature map data from the lightweight model, dynamically solving the quantization factor of each group of data according to the established quantization bit width, and reloading all data into the deep convolutional neural network model DNN after using the quantization method; and then retraining and fine-tuning the quantized model to restore the original performance. The quantization formula is:

[0132] ;

[0133] W i = ∑ n = 1 N R n [ idx i ( n )] ;

[0134] ;

[0135] Among them, r i and r i-1 is the value range of the quantized weight R n adjacent values ​​within; n is an integer, M is the quantization bit width of the weight value, and N is the number of segments after weight quantization, which is used to determine the quantization value range; Indicates indexing function through NB bit; represents the absolute value function; is the original weight of the neural network model; The weights of the neural network model are quantized, R n A collection of value ranges.

[0136] Step S8, performing knowledge distillation and optimization on the network structure of the quantized deep convolutional neural network model DNN.

[0137] Due to the difference in the depth or structure of the teacher and student networks, the number of intermediate feature channels extracted by the teacher and student networks may be different. In order to learn rich hierarchical information, the spatial transfer module also extracts spatial information from high-level features. The spatial transfer module converts the three-dimensional feature maps obtained from the teacher network and the student network into two-dimensional attention maps by superimposing them in the channel dimension, and then uses the corresponding loss function to make the attention maps of the teacher and student networks as similar as possible. The spatial feature distillation loss is used to measure the similarity between the student's attention map and the teacher's attention map. By using the teacher's attention map information to supervise the student's training, the transfer of spatial information can be achieved and the student's learning effect can be improved.

[0138] For step S8, knowledge distillation is performed on the network structure of the quantized deep convolutional neural network model DNN, and optimization is performed, including:

[0139] Distilled in a teacher-student integration way, specifically:

[0140] The teacher model is trained on the dataset D. For the classifier, the neural network output before softmax is taken and used as a soft target to guide the student model training. Through the attention mechanism, the teacher's attention map information is used to supervise the training of the student model to achieve the transfer of spatial information. In addition, the temperature scaling Temptature scaler is used to scale the soft target to obtain a more peaceful soft target distribution, which can further improve the student model performance, as shown in the following formula:

[0141] The loss function is:

[0142] ;

[0143] is the attention map of the teacher network, is the attention map of the student network, h and f are the width and height of the attention map respectively; the overall loss function Loss of the student model includes two parts: the cross entropy with the soft target and the cross entropy with the ground truth. After training, the smaller student model can achieve the same or close performance as the complex teacher model;

[0144] Among them, the network structure of the deep convolutional neural network model DNN includes an input layer, an output layer, 3N convolutional layers, 2N pooling layers, 2N fully connected layers and a Gaussian connection layer, wherein a convolutional layer is connected to an adjacent pooling layer, and then to an adjacent convolutional layer.

[0145] Step S9, designing a general hardware accelerator, wherein the integrated circuit of the general hardware accelerator is composed of a CPU, a GPU and a field programmable gate array FPGA, the linear training task is completed by the CPU, and the nonlinear training task is completed by the GPU;

[0146] For step S9, a general hardware accelerator is designed, wherein the general hardware accelerator includes an input signal part, a bias unit register, an effective weight selection unit, a SUM unit, an output data processing unit, and an output unit; wherein the bias unit register is connected in parallel with the effective weight selection unit.

[0147] Step S10, deploying the optimized deep convolutional neural network model DNN in the FPGA; according to the optimized deep convolutional neural network model DNN and the resource constraints of the FPGA, selecting the corresponding hardware parallelization structure, including a computing unit, a control unit and a storage unit, and deploying the optimized deep convolutional neural network model DNN in the FPGA to achieve hardware acceleration.

[0148] Embodiment 2:

[0149] like Figure 2, which is a schematic diagram of the structure of the functional modules of the method provided by one embodiment of the present invention.

[0150] A data intelligence model training and hardware acceleration system based on artificial intelligence is proposed, including:

[0151] The original network structure module 1 sets the network structure of the original deep convolutional neural network model DNN, and the weights are randomly selected to initialize the original deep convolutional neural network model DNN;

[0152] The intermediate network structure module 2 collects the control instructions and network parameters of the historical task data, inputs them into the task queue, obtains the network weights after the first training, and is used to obtain the convolutional neural network model after the first training;

[0153] The block division unit 3 divides the convolutional layers of the convolutional neural network model DNN after the first training into stages and categories according to the commonality of the attributes of each convolutional layer, thereby obtaining blocks;

[0154] Screening unit 4 calculates the filter channel size and pruning weight of each category convolution layer in each block, and screens the importance of weights through filters that can adjust the filter channel size;

[0155] Adjustment unit 5: Use the pruned intelligent model to perform the reasoning task. If the reasoning task is not satisfied, adjust the filter channel size.

[0156] Retraining unit 6: Select the corresponding activation function according to the task type and retrain the optimized neural network model;

[0157] Quantization unit 7: quantize the deep convolutional neural network model DNN after pruning;

[0158] Optimization unit 8, performs knowledge distillation and optimization on the network structure of the quantized deep convolutional neural network model DNN;

[0159] Integrated circuit module 9, designs a general hardware accelerator, wherein the integrated circuit of the general hardware accelerator is composed of a CPU, a GPU and a field programmable gate array FPGA, the linear training task is completed by the CPU, and the nonlinear training task is completed by the GPU;

[0160] The accelerator module 10 deploys the optimized deep convolutional neural network model DNN in the FPGA; according to the optimized deep convolutional neural network model DNN and the resource limitations of the FPGA, the corresponding hardware parallelization structure is selected, including a computing unit, a control unit and a storage unit, and the optimized deep convolutional neural network model DNN is deployed in the FPGA to achieve hardware acceleration.

[0161] Embodiment 3:

[0162] like Figure 3 FIG. 1 is a schematic diagram of the structure of an electronic device of a method provided by an embodiment of the present invention.

[0163] The electronic device 100 may include a processor 101 , a memory 11 , a communication interface 13 , and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 101 , such as a program 12 .

[0164] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may be an internal storage unit of the electronic device 100 in some embodiments, such as a mobile hard disk of the electronic device 100. The memory 11 may also be an external storage device of the electronic device 100 in other embodiments, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 100. Further, the memory 11 may also include both an internal storage unit of the electronic device 100 and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device 100, such as the code of the program 12, etc., but may also be used to temporarily store data that has been output or is to be output.

[0165] The processor 101 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 101 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for implementing the program 12 constructed by the data intelligence model training based on artificial intelligence and the hardware acceleration method, etc.), and calls the data stored in the memory 11 to execute various functions of the electronic device 100 and process data.

[0166] The communication interface 13 may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 100 and other electronic devices, and to achieve connection and communication between internal components of the electronic devices.

[0167] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 101, etc.

[0168] Figure 2 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 2 The structure shown does not constitute a limitation on the electronic device 100 , and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0169] For example, although not shown, the electronic device 100 may also include a power source (such as a battery) for supplying power to various components. Preferably, the power source may be logically connected to the at least one processor 101 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, and power status indicators. The electronic device 100 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be described in detail here.

[0170] Optionally, the electronic device 100 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 100 and to display a visual user interface.

[0171] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0172] The program 12 stored in the memory 11 in the electronic device 100 is a combination of multiple instructions. When running in the processor 101, it can achieve:

[0173] Set the network structure of the original deep convolutional neural network model DNN, and initialize the original deep convolutional neural network model DNN by taking random values ​​for the weights;

[0174] Collect control instructions and network parameters of historical task data, input them into the task queue, and obtain network weights after the first training to obtain the convolutional neural network model after the first training;

[0175] The convolutional layers of the first trained convolutional neural network model DNN are divided into stages and categories according to the common properties of each convolutional layer, thereby obtaining blocks;

[0176] Calculate the filter channel size and pruning weight of each category of convolutional layer in each block, and use filters that can adjust the filter channel size to screen the importance of weights;

[0177] Use the pruned intelligent model to perform reasoning tasks. If the reasoning tasks are not met, adjust the filter channel size.

[0178] Select the corresponding activation function according to the task type and retrain the optimized neural network model;

[0179] Quantify the deep convolutional neural network model DNN after pruning;

[0180] Perform knowledge distillation and optimization on the network structure of the quantized deep convolutional neural network model DNN;

[0181] Design a general hardware accelerator, wherein the integrated circuit of the general hardware accelerator is composed of a CPU, a GPU and a field programmable gate array FPGA, the linear training task is completed by the CPU, and the nonlinear training task is completed by the GPU;

[0182] The optimized deep convolutional neural network model DNN is deployed in the FPGA; according to the resource limitations of the optimized deep convolutional neural network model DNN and the FPGA, the corresponding hardware parallelization structure is selected, including computing units, control units and storage units, and the optimized deep convolutional neural network model DNN is deployed in the FPGA to achieve hardware acceleration.

[0183] Specifically, the specific implementation method of the processor 101 for the above instructions can refer to Figure 1 to Figure 2 The description of the relevant steps in the corresponding embodiments will not be repeated here.

[0184] It should be noted that the serial numbers of the above-mentioned embodiments of the present invention are only for description and do not represent the advantages and disadvantages of the embodiments. And the terms "including", "comprising" or any other variants thereof in this article are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "including a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0185] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0186] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A data intelligence model training and hardware acceleration method based on artificial intelligence, It is characterized in that The method comprises: Step S1, setting the network structure of the original deep convolutional neural network model DNN, and initializing the original deep convolutional neural network model DNN by randomly taking weights; Step S2, collecting control instructions and network parameters of historical task data, inputting them into the task queue, and obtaining network weights after the first training, which are used to obtain the convolutional neural network model after the first training; Step S3, dividing the convolutional layers of the convolutional neural network model DNN after the first training into stages and categories according to the commonality of the attributes of each convolutional layer, thereby obtaining blocks; Step S4, calculating the filter channel size and pruning weight of each category convolution layer in each block, and screening the importance of weights by using a filter that can adjust the filter channel size; Step S5: Use the pruned intelligent model to perform the reasoning task. If the reasoning task is not satisfied, adjust the filter channel size. Step S6: Select the corresponding activation function according to the task type and retrain the optimized neural network model; Step S7: quantizing the deep convolutional neural network model DNN after pruning; Step S8, performing knowledge distillation and optimization on the network structure of the quantized deep convolutional neural network model DNN; Step S9, designing a general hardware accelerator, wherein the integrated circuit of the general hardware accelerator is composed of a CPU, a GPU and a field programmable gate array FPGA, the linear training task is completed by the CPU, and the nonlinear training task is completed by the GPU; Step S10, deploying the optimized deep convolutional neural network model DNN in the FPGA; according to the optimized deep convolutional neural network model DNN and the resource constraints of the FPGA, selecting the corresponding hardware parallelization structure, including a computing unit, a control unit and a storage unit, and deploying the optimized deep convolutional neural network model DNN in the FPGA to achieve hardware acceleration.

2. The data intelligence model training and hardware acceleration method based on artificial intelligence as claimed in claim 1, It is characterized in that The step S3 divides the convolutional layers of the first trained convolutional neural network model DNN into stages and categories according to the commonality of the attributes of each convolutional layer, including: S31, grouping according to the size of the input feature map, and grouping the convolutional layers with the same size of the input feature map into one stage; S32, for the convolutional layers after the division stage, grouping and adjusting according to the size of the convolution kernel and the size of the adjacent pooling layer, and grouping the convolutional layers with the same convolution kernel size and the pooling layers with the same pooling layer size into one large category; S33, within each major category, according to the residual connection characteristics, all convolutional layers within a residual connection span are grouped into one block; within each block, each convolutional layer is processed independently.

3. The data intelligence model training and hardware acceleration method based on artificial intelligence as claimed in claim 1, It is characterized in that In the step S4, the filter channel size and pruning weight of each category convolution layer in each block are calculated, and the importance of the weight is screened by using a filter capable of adjusting the filter channel size, including: S41, set the initial size of the filter channel to ,in, is the convolution kernel size, k is the preset coefficient; S42: training the obtained network architecture of the deep convolutional neural network model DNN until convergence; S43: According to the formula Calculate the contribution of each parameter, where the error ; is the weight from neuron i to neuron j; is a collection of index pairs; The contribution of each parameter; , represents the connection of one or more neurons that are selected for control; is the predetermined disturbance parameter vector Elements in It is the second-order derivative on the diagonal of the Hessian matrix H in the deep convolutional neural network model DNN; S44: Sort the parameters by contribution and delete some parameters whose contribution is less than the set threshold to screen the importance of weights, cut off unimportant neurons, and establish a local model of the error function to predict the impact of the perturbation parameters on the optimization target, and find the neurons with the least impact on the loss; S45: Return to step S41, re-participate in the calculation, and update the deep convolutional neural network model DNN again.

4. The data intelligence model training and hardware acceleration method based on artificial intelligence as claimed in claim 3, It is characterized in that The step S5, using the pruned intelligent model to perform the reasoning task, and when the reasoning task is not satisfied, adjusting the filter channel size, includes: S51, according to the error calculation formula Calculate the preset error of the reasoning task at each stage , then the cumulative error ; s is the number of stages; S52: When When adjusting the filter channel size, the parameters are adjusted to make the preset coefficient k=k+0.1; is the preset error threshold; S53: Return to step S52 until Until then, re-participate in the calculation and update the deep convolutional neural network model DNN again.

5. The data intelligence model training and hardware acceleration method based on artificial intelligence as claimed in claim 1, It is characterized in that The step S6, selecting a corresponding activation function according to the task type, and retraining the optimized neural network model, includes: selecting a corresponding activation function according to the selection signal, the activation function includes Sgn function, Sigmoid function, Tanh function, in, The Sgn function expression is: ; The Sigmoid function expression is: ; The Tanh function expression is: ; Among them, x is the input of the neuron, w is the neuron weight, p is the bias coefficient; e represents the base of the natural logarithm, and T is the transpose; The selection signal is set to be two bits wide.

6. The data intelligence model training and hardware acceleration method based on artificial intelligence as claimed in claim 5, It is characterized in that The step S7 quantizes the pruned deep convolutional neural network model DNN, including: converting the floating-point parameters in the network into int integers that are more friendly to hardware parallel computing for calculation, extracting parameters, biases and feature map data from the lightweight model, dynamically solving the quantization factor of each group of data according to the established quantization bit width, and reloading all data into the deep convolutional neural network model DNN after using the quantization method; and then retraining and fine-tuning the quantized model to restore the original performance. The quantization formula is: ; ; ; Among them, r i and r i-1 is the value range of the quantized weight R n adjacent values ​​within; n is an integer, M is the quantization bit width of the weight value, and N is the number of segments after weight quantization, which is used to determine the quantization value range; Indicates indexing function through NB bit; represents the absolute value function; is the original weight of the neural network model; The weights of the neural network model are quantized, R n A collection of value ranges.

7. The data intelligence model training and hardware acceleration method based on artificial intelligence as claimed in claim 1, It is characterized in that The step S8 performs knowledge distillation and optimization on the network structure of the quantized deep convolutional neural network model DNN, including: Distilled in a teacher-student integration way, specifically: The teacher model is trained on the dataset D. For the classifier, the neural network output before softmax is taken and used as a soft target to guide the student model training. Through the attention mechanism, the teacher's attention map information is used to supervise the training of the student model to achieve the transfer of spatial information. In addition, the temperature scaling Temptature scaler is used to scale the soft target to obtain a more peaceful soft target distribution, which can further improve the student model performance, as shown in the following formula: The loss function is: ; is the attention map of the teacher network, is the attention map of the student network, h and f are the width and height of the attention map respectively; the overall loss function Loss of the student model includes two parts: the cross entropy with the soft target and the cross entropy with the ground truth. After training, the smaller student model can achieve the same or close performance as the complex teacher model; The network structure of the deep convolutional neural network model DNN includes an input layer, an output layer, 3N convolutional layers, 2N pooling layers, 2N fully connected layers and a Gaussian connection layer, wherein a convolutional layer is connected to an adjacent pooling layer, and then to an adjacent convolutional layer; The step S9 is to design a general hardware accelerator, wherein the general hardware accelerator includes an input signal part, a bias unit register, an effective weight selection unit, a SUM unit, an output data processing unit, and an output unit; wherein the bias unit register is connected in parallel with the effective weight selection unit.

8. A data intelligence model training and hardware acceleration system based on artificial intelligence, It is characterized in that include: The original network structure module sets the network structure of the original deep convolutional neural network model DNN, and the weights are randomly selected to initialize the original deep convolutional neural network model DNN; The intermediate network structure module collects the control instructions and network parameters of historical task data, inputs them into the task queue, and obtains the network weights after the first training, which are used to obtain the convolutional neural network model after the first training; The block division unit divides the convolutional layers of the first trained convolutional neural network model DNN into stages and categories according to the common properties of each convolutional layer, thereby obtaining blocks; The screening unit calculates the filter channel size and pruning weight of each category of the convolutional layer in each block, and screens the importance of the weights through filters that can adjust the filter channel size; Adjustment unit: Use the pruned intelligent model to perform reasoning tasks. If the reasoning task is not met, adjust the filter channel size. Retraining unit: select the corresponding activation function according to the task type and retrain the optimized neural network model; Quantization unit: quantize the deep convolutional neural network model DNN after pruning; The optimization unit performs knowledge distillation and optimization on the network structure of the quantized deep convolutional neural network model DNN; Integrated circuit module, designing a general hardware accelerator, wherein the integrated circuit of the general hardware accelerator is composed of a CPU, a GPU and a field programmable gate array FPGA, the linear training task is completed by the CPU, and the nonlinear training task is completed by the GPU; The accelerator module deploys the optimized deep convolutional neural network model DNN in the FPGA; according to the resource limitations of the optimized deep convolutional neural network model DNN and the FPGA, the corresponding hardware parallelization structure is selected, including the computing unit, the control unit and the storage unit, and the optimized deep convolutional neural network model DNN is deployed in the FPGA to achieve hardware acceleration.

9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the artificial intelligence-based data intelligence model training and hardware acceleration method as described in any one of claims 1 to 7 are implemented.

10. A computer storage medium storing a computer program. It is characterized in that When the computer program is executed by a processor, the steps of the artificial intelligence-based data intelligence model training and hardware acceleration method as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Heterogeneous computing system and method based on CPU+GPU+FPGA architecture

    CN107273331A

  • Dynamic structured network pruning method based on filter attention mechanism and BN layer scaling coefficient

    CN110263841A

  • Neural network model construction method based on pruning and related device

    CN111814975A

  • Singular point-containing electronic signal fault hybrid prediction method and verification device

    CN112487725A

  • Deep neural network compression method based on joint dynamic pruning

    CN112613610A

Cited By

  • Algorithm acceleration method for scene recognition and switching

    CN119227768A

  • Model deployment method and device, equipment and storage medium

    CN119229308A

  • Knowledge distillation-based high-speed flow interpretable artificial intelligence control method

    CN120370720A

  • Deployment method, prediction method and system of electrical equipment state prediction network

    CN121561523A