MATLAB Answers

How to get deep learning layer output size?

48 views (last 30 days)
I am getting to know MATLAB's capability with deep learning (I am fluent in TensorFlow).
I built a very big computation graph.
My question is :
How can I get a specific layer's output sizes without training the network? (for dubugging purposes)
I know that I can do:
features = activations(net,X,layer)
but this requires me to train the network (I want to avoid it since it will take a while).


Sign in to comment.

Accepted Answer

Maria Duarte Rosa
Maria Duarte Rosa on 5 Apr 2019


Itzik Ben Shabat
Itzik Ben Shabat on 6 Apr 2019
Thanks. It seems to be just what I was looking for.
Mirko Prezioso
Mirko Prezioso on 3 Dec 2020
Hi, is there a way to extract the data from AnalyzeNetwork? I mean not just having them in graphical form but as output arrays to be able to use the data. I am looking for the Learnables total size.
Utkarsh Virtuous
Utkarsh Virtuous on 19 Jan 2021
net.Layers().Weights give you the learned parameters. Specify the layer number in bracket.

Sign in to comment.

More Answers (0)




Community Treasure Hunt

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

Start Hunting!