How to get deep learning layer output size?

10 Ansichten (letzte 30 Tage)
Itzik Ben Shabat
Itzik Ben Shabat am 2 Apr. 2019
Bearbeitet: Angelo Yeo am 9 Feb. 2024
Hi,
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).
Thanks

Akzeptierte Antwort

Maria Duarte Rosa
Maria Duarte Rosa am 5 Apr. 2019
  4 Kommentare
Utkarsh Virtuous
Utkarsh Virtuous am 19 Jan. 2021
net.Layers().Weights give you the learned parameters. Specify the layer number in bracket.
Angelo Yeo
Angelo Yeo am 9 Feb. 2024
Bearbeitet: Angelo Yeo am 9 Feb. 2024
@Mirko Prezioso: A new class NetworkAnalysis will be added from R2024a. This class can be retrieved as an output of analyzeNetwork function, and will capture the output of analyzeNetwork. This will include a property called "LayerInfo" as a table.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Kategorien

Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange

Produkte


Version

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by