Error using layerGraph in Neural Network toolbox

I tried to run the example given in the sequenceInputLayer documentation and plot the layergraph. The error message is unexpected ("Layer array must not contain a sequence input layer"!). What's wrong???
layers = [ ... sequenceInputLayer(12) lstmLayer(100,'OutputMode','last') fullyConnectedLayer(9) softmaxLayer classificationLayer]; lgraph = layerGraph(layers); Error using nnet.internal.cnn.util.validateLayersForLayerGraph (line 28) Layer array must not contain a sequence input layer.
Error in layerGraph>iPostProcessParsingResultsForConstructor (line 86) inputArguments.Layers = nnet.internal.cnn.util.validateLayersForLayerGraph(results.Layers);
Error in layerGraph (line 46) inputArguments = iPostProcessParsingResultsForConstructor(parser.Results);

Respuestas (1)

John Smith
John Smith el 15 de En. de 2019

0 votos

It's a limitation of Matlab (at least until 2018b).
Documentations says: Layer graphs cannot specify the architecture of long short-term memory (LSTM) networks.

Categorías

Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.

Productos

Versión

R2018a

Etiquetas

Preguntada:

el 26 de Jun. de 2018

Respondida:

el 15 de En. de 2019

Community Treasure Hunt

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

Start Hunting!

Translated by