MATLAB Answers

Incorporate Keras Network WITH LSTM Layer

조회 수: 6(최근 30일)
David Kuske
David Kuske 9 Nov 2017
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.


Sivylla Paraskevopoulou
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.

Community Treasure Hunt

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

Start Hunting!

Translated by