Importing Trained Tensorflow/Keras LSTM network into MATLAB
Mostrar comentarios más antiguos
Hi,
So as a part of a project i need to import a LSTM network which is trained by Tensorflow/keras into matlab. So far i tried to use ImportKerasNetwork but it appears that this function does not support LSTM layers. I have been notified that in R2022 version ,which i am using now, importTensorflowNetwork supports LSTM networks however i dont know the exact usage of this function to import my network to MATLAB. I was wondering if anyone could help me in this matter. Thanks !
Respuestas (2)
David Willingham
el 17 de Oct. de 2022
0 votos
Hi,
To use importTensorflowNetwork, you'll first need to convert the model into the SavedModel format in Tensorflow. Here is an example of how to do this:

Asma
el 29 de Jun. de 2026 a las 18:07
0 votos
Hello, I have trained an LSTM model on (TensorFlow : 2.21.0, Keras (via tf.keras) : 3.15.0, Keras (package séparé) : 3.15.0) I want to export it to Matlab 2025a .dedicated functions on matlab are available only for keras 2. How to do to import the model from python?
Categorías
Más información sobre Deep Learning Toolbox en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!