could anyone help me how to manually create the structured arrays

조회 수: 1 (최근 30일)
jaah navi
jaah navi 2021년 6월 28일
댓글: Walter Roberson 2021년 6월 29일
I want to create the strucured array automatically as
1x1SequenceInputLayer
1x1FullyConnected Layer.
Could anyone please help me with this.

답변 (1개)

Walter Roberson
Walter Roberson 2021년 6월 28일
inputSize = randi(20);
outputSize = randi(20);
S = struct('SequenceInputLayer', {SequenceInputLayer(inputSize)}, ...
'FullyConnectedLayer', {FullyConnectedLayer(outputSize)});
... or are you asking for a way to bypass calling SequenceInputLayer() and FullyConnectedLayer() for some reason?
  댓글 수: 4
jaah navi
jaah navi 2021년 6월 28일
ok. But could you help me how to do sine activation function as for relu i can use relu layer, in the similar manner how i can perform sine activation function.

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

카테고리

Help CenterFile Exchange에서 Install Products에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by