Incorporate Keras Network WITH LSTM Layer
5 次查看(过去 30 天)
显示 更早的评论
I have a compiled and trained networkmodel with an LSTM Layer, as .py or saved as .HDF5 using Keras with Tensorflowbackend. Is there a way to use it (give input, predict output) in Matlab? The importKerasLayer function seems not to work with LSTMs at all.
0 个评论
回答(2 个)
Sivylla Paraskevopoulou
2021-2-12
What version are you using? Since R2018b, you can Import LSTM and BiLSTM layers from TensorFlow-Keras. For a list of support Keras layers see the documentation of importKerasNetwork and importKerasLayers functions. Also, note that importKerasNetwork or importKerasLayers support importing a TensorFlow-Keras network only in HDF5 or JSON format.
0 个评论
Phan Phat
2021-11-28
Could you tell more detail about how to import the LSTM model on MATLAB? I used importKerasNetwork; however, seem does not work. Thanks!
1 个评论
David Willingham
2021-11-30
Hi, I'd recommend using the importTensorFlowNetwork instead as it has more support for the layers that can be imported. Note: you'll need to update your Keras network to TensorFlow 2.0 in order to use this.
另请参阅
类别
在 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!