how to add a FeedForward layer after my LSTM layer
1 次查看(过去 30 天)
显示 更早的评论
Dear all
I wish to know how I could add a feedforward layer after my LSTM layers
thanks
0 个评论
回答(1 个)
Ajay Pattassery
2019-12-30
You could add desired layers after your LSTM network layer by specifying them as columns in the layers array.
Consider an example below where fullyConnectedLayer, softmaxLayer and classificationLayer are added after the lstmLayer.
layers = [ ...
sequenceInputLayer(inputSize)
lstmLayer(numHiddenUnits)
fullyConnectedLayer(numClasses)
softmaxLayer
classificationLayer]
2 个评论
Ajay Pattassery
2019-12-30
Could you elaborate on the feedforward layer? What does that layer accomplish?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!