无法将LSTM图层添加到模型中

时间:2017-03-15 13:23:25

标签: python tensorflow keras lstm keras-layer

我正在使用python 3.5,这里安装了一些软件包:

  • Keras 2.0
  • TensorFlow 0.12.1
  • Theano 0.8.2

这是我的代码:

from keras.models import Sequential
from keras.layers import LSTM

model = Sequential()
model.add(LSTM(512, input_shape=(36, 45), return_sequences=True))

这是错误信息:

TypeError: Expected int32, got list containing Tensors of type '_Message' instead.

0 个答案:

没有答案
相关问题