could anyone help me how to manually create the structured arrays

1 次查看(过去 30 天)
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