Is there any way to compute the number of trainable parameters from code in a deep CNN network?
8 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello
I am using a six layer compact CNN model for classification after intantiating the layers and training data to trainNetwork(). I want to calculate the number of trainable parameters in this network. Something similar to the below in pytorch:
model=net()
for parameter in model.parameters():
print(parameter)
Is there any way avaible in MATLAB?
0 Commenti
Risposte (1)
Harsh
il 28 Feb 2025
You can calculate the number of trainable parameters in your Convolutional Neural Network (CNN) model using the “analyzeNetwork” function, which provides a detailed layer-by-layer breakdown, including the count of learnable parameters for each layer.
Please refer to the following documentation for more information regarding “analyzeNetwork” function - https://www.mathworks.com/help/deeplearning/ref/analyzenetwork.html
0 Commenti
Vedere anche
Categorie
Scopri di più su Deep Learning Toolbox in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!