주요 콘텐츠

가지치기

R2026b
컨벌루션 계층에서 중요도가 가장 낮은 필터를 가지치기하여 신경망의 학습 가능한 파라미터 개수 줄이기

가지치기는 컨벌루션 계층에서 중요도가 가장 낮은 필터를 제거하여 신경망의 학습 가능한 파라미터 개수를 줄입니다.

trainnet 함수를 사용하여 신경망을 훈련시킬 수 있으면 compressNetworkUsingTaylorPruning 함수를 사용하여 신경망을 가지치기하십시오. trainnet 함수를 사용하여 신경망을 훈련시킬 수 없는 경우에는 대신 taylorPrunableNetwork 객체를 사용하여 사용자 지정 가지치기 루프를 만드십시오.

Deep Learning Toolbox™ Model Compression Library에서 사용 가능한 압축 기법에 대한 자세한 개요는 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.

함수

모두 확장

compressNetworkUsingTaylorPruningCompress neural network using Taylor pruning (R2026a 이후)
taylorPrunableNetworkNeural network suitable for compression using Taylor pruning (R2022a 이후)
forward훈련에 사용할 딥러닝 신경망 출력값 계산
predict추론에 사용할 딥러닝 신경망 출력값 계산
updatePrunablesRemove filters from prunable layers based on importance scores (R2022a 이후)
updateScoreCompute and accumulate Taylor-based importance scores for pruning (R2022a 이후)

도움말 항목

추천 예제