Keras LSTM工程2法国Seq2Seq模型中的断言错误

Keras LSTM工程2法国Seq2Seq模型中的断言错误,keras,lstm,Keras,Lstm,我正在为英法翻译构建一个编码器-解码器。数据集有x_序列和y_序列 x_train.shape= 124074, 15 y_train.shape = 124074, 23 编码器-解码器来自 当我合适的时候 model.fit(x_train, y_train, batch_size=1024, validation_split=0.2, epochs=10) 我犯了一个错误 AssertionError: Could not compute output Tensor("den

我正在为英法翻译构建一个编码器-解码器。数据集有x_序列和y_序列

x_train.shape= 124074, 15
y_train.shape = 124074, 23
编码器-解码器来自

当我合适的时候

model.fit(x_train, y_train, batch_size=1024, validation_split=0.2, epochs=10)
我犯了一个错误

AssertionError: Could not compute output Tensor("dense_3/BiasAdd:0", shape=(None, 10), dtype=float32)
如何解决

AssertionError: Could not compute output Tensor("dense_3/BiasAdd:0", shape=(None, 10), dtype=float32)