Is there any way to compute the number of trainable parameters from code in a deep CNN network?

4 vues (au cours des 30 derniers jours)
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:
for parameter in model.parameters():
Is there any way avaible in MATLAB?

Réponses (0)


En savoir plus sur Image Data Workflows dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by