【发布时间】:2017-03-12 21:45:09
【问题描述】:
我正在使用深度学习库 keras 并尝试堆叠多个 LSTM,但没有运气。 下面是我的代码
model = Sequential()
model.add(LSTM(100,input_shape =(time_steps,vector_size)))
model.add(LSTM(100))
以上代码在第三行返回错误Exception: Input 0 is incompatible with layer lstm_28: expected ndim=3, found ndim=2
输入 X 是一个形状为 (100,250,50) 的张量。我在 tensorflow 后端运行 keras
【问题讨论】:
标签: tensorflow deep-learning keras lstm keras-layer