Contenuto principale

Sfoltimento

Ridurre il numero di parametri apprendibili in una rete neurale tramite lo sfoltimento dei filtri meno importanti nei livelli convoluzionali

Lo sfoltimento riduce il numero di parametri apprendibili in una rete neurale eliminando i filtri meno importanti nei livelli convoluzionali.

Se è possibile addestrare la rete utilizzando la funzione trainnet, sfoltirla utilizzando la funzione compressNetworkUsingTaylorPruning. Se non è possibile addestrare la rete utilizzando la funzione trainnet, creare un loop di sfoltimento personalizzato utilizzando invece un oggetto taylorPrunableNetwork.

Per una panoramica dettagliata delle tecniche di compressione disponibili in Deep Learning Toolbox™ Model Compression Library, vedere Reduce Memory Footprint of Deep Neural Networks.

Simplified illustration of pruning. On the left is a sketch of a neural network with three layers that consist of four, three, and four neurons, respectively. All neurons are connected to all other neurons. An arrow points to a second sketch on the right that shows the same network, but one neuron has been cut out from the middle layer, and two neurons have been cut out from the final layer.

Funzioni

espandi tutto

compressNetworkUsingTaylorPruningCompress neural network using Taylor pruning (Da R2026a)
taylorPrunableNetworkNeural network suitable for compression using Taylor pruning (Da R2022a)
forwardCompute deep learning network output for training
predictCompute deep learning network output for inference
updatePrunablesRemove filters from prunable layers based on importance scores (Da R2022a)
updateScoreCompute and accumulate Taylor-based importance scores for pruning (Da R2022a)

Argomenti

Esempi in primo piano