Apply Prune function on CNN

2 ビュー (過去 30 日間)
frederic feresin
frederic feresin 2019 年 1 月 21 日
回答済み: Maksym Tymchenko 2023 年 7 月 21 日
when pruning is applied to Alexnet, ML returns: "Undefined function 'prune' for input arguments of type 'SeriesNetwork'!" could you please explain how to apply "prune" function to CNN?
  2 件のコメント
Shaw
Shaw 2021 年 11 月 3 日
Did you solve this question?
frederic feresin
frederic feresin 2021 年 11 月 3 日

サインインしてコメントする。

回答 (1 件)

Maksym Tymchenko
Maksym Tymchenko 2023 年 7 月 21 日
In MATLAB, you can compress deep neural networks by using the Deep Learning Model Quantization Library, which is a free Add-On to the Deep Learning Toolbox.
This library contains a set of different functions that allow you to compress your deep learning network.
You mentioned pruning, this is a type of structural compression where the least important weights in the network are discarded making the network smaller. The "prune" function that you mentioned only accepts "shallow neural networks" as input. That is the reason why it did not work on AlexNet. If you want to perform structural compression on a deep neural network like Alexnet, you can use either:
Both of these functions work only on dlnetwork objects, so you might need to convert your network to that form in order to use them. For an example of how to prune convolutional filters in a CNN see:

カテゴリ

Help Center および File ExchangeImage Data Workflows についてさらに検索

製品


リリース

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by