Importing Keras model to Matlab: LSTM layers is not yet supported.

조회 수: 1 (최근 30일)
Ajpaezm
Ajpaezm 2019년 1월 29일
답변: Don Mathis 2019년 1월 31일
I have a .h5 file I want to upload to Matlab using the import tool for TensorFlow in matlab, like this:
layers = importKerasLayers('myModel.h5');
But I get the following error:
Option to import Keras networks containing LSTM layers is not yet supported.
Error in NN_model (line 2)
layers = importKerasLayers('myModel.h5');
I've tried this in 2018a, and apperantly all layers related to LSTM are available in this version after the toolbox is downloaded, but I keep getting the error.
Is there any workaround to solve this? What could be causing the error?

답변 (1개)

Don Mathis
Don Mathis 2019년 1월 31일
Support for importing LSTM layers from Keras started in R2018b.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by