could anyone help me how to manually create the structured arrays

1 visualización (últimos 30 días)
jaah navi
jaah navi el 28 de Jun. de 2021
Comentada: Walter Roberson el 29 de Jun. de 2021
I want to create the strucured array automatically as
1x1SequenceInputLayer
1x1FullyConnected Layer.
Could anyone please help me with this.

Respuestas (1)

Walter Roberson
Walter Roberson el 28 de Jun. de 2021
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 comentarios
jaah navi
jaah navi el 28 de Jun. de 2021
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Install Products en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by