Pruning method and device for convolutional neural network, equipment and medium
A convolutional neural network and pruning technology, applied in the computer field, can solve problems such as model irregularity, poor generalization, and time-consuming, and achieve the effects of reducing intelligence costs, improving generalization, and reducing costs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0034] Such as figure 1 As shown, the present embodiment provides a pruning method of a convolutional neural network, comprising the following steps:
[0035] S1. Obtain a data set of images, and divide the data set into a training set and a verification set in proportion;
[0036] S2. After initializing the convolutional neural network model to be pruned, multiple rounds of pre-training are performed on the images in the training set, so as to obtain the weight sum of each network layer, and determine the sensitive layer of the network according to the weight sum;
[0037] S3. Carry out multiple rounds of automatic pruning operations through reinforcement learning, and obtain the model accuracy of each round of pruning operations through verification set verification, so as to obtain the model pruning strategy with the highest model accuracy; during the period, according to the deterministic strategy of reinforcement learning, Implementing different compression strategies fo...
Embodiment 2
[0072] Such as image 3 As shown, a pruning device of a convolutional neural network is provided in this embodiment, including:
[0073] The data module is used to obtain the data set of the image, and divide the data set into a training set and a verification set in proportion;
[0074] The pre-training module is used to initialize the convolutional neural network model to be pruned, and perform multiple rounds of pre-training on the images in the training set, so as to obtain the weight sum of each network layer, and determine the sensitive layer of the network according to the weight sum;
[0075] The pruning module is used to perform multiple rounds of automatic pruning operations through reinforcement learning, and obtain the model accuracy of each round of pruning operations through verification set verification, so as to obtain the model pruning strategy with the highest model accuracy; during the period, according to the reinforcement learning Deterministic strategy, ...
Embodiment 3
[0110] This embodiment provides an electronic device, such as Figure 4 As shown, it includes a memory, a processor, and a computer program stored in the memory and operable on the processor. When the processor executes the computer program, any implementation manner in Embodiment 1 can be realized.
[0111] Since the electronic device introduced in this embodiment is the device used to implement the method in Embodiment 1 of this application, based on the method described in Embodiment 1 of this application, those skilled in the art can understand the electronic device of this embodiment. Specific implementation methods and various variations thereof, so how the electronic device implements the method in the embodiment of the present application will not be described in detail here. As long as a person skilled in the art implements the equipment used by the method in the embodiment of the present application, it all belongs to the protection scope of the present application. ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com