Is there any way to use "activations" function for a dlnetwork ?

조회 수: 12 (최근 30일)
hyeonjin kim
hyeonjin kim 2019년 12월 6일
댓글: hyeonjin kim 2019년 12월 10일
I would like to obtain an activation from a specific layer of a trained network of type 'dlnetwork' by using the 'activations' function, but it does not work resulting in the following error message.
"undefined function 'activations' for input argument of type 'dlnetwork' ."
Can I get around this problem ?

채택된 답변

Sourav Bairagya
Sourav Bairagya 2019년 12월 10일
The "activations" function supports only SeriesNetwork object or DAGNetwork object, but doesn't support 'dlnetwork' object.
However, you can use "forward" fucntion to compute activations from a specific layer of a 'dlnetwork' object.
[dlY1,..,dlYN] = forward(dlnet,dlX,'Outputs',layerNames)
You can leverage this link to know more details about the usage of "forward" function:
  댓글 수: 1
hyeonjin kim
hyeonjin kim 2019년 12월 10일
Dear Sourav,
I greatly appreciate your help !!!
Thanks very much !!!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Deep Learning Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by