Error using layerGraph in Neural Network toolbox

10 ビュー (過去 30 日間)
Gerard Bailly
Gerard Bailly 2018 年 6 月 26 日
回答済み: John Smith 2019 年 1 月 15 日
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);

回答 (1 件)

John Smith
John Smith 2019 年 1 月 15 日
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.

カテゴリ

Help Center および File ExchangeInstall Products についてさらに検索

タグ

製品


リリース

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by