could anyone help me how to manually create the structured arrays

2 ビュー (過去 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 件のコメント

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by