Keras seq2seq示例保存问题

时间:2018-09-06 05:22:49

标签: python tensorflow keras lstm seq2seq

大家好!

我刚刚尝试了keras seq2seq示例(link)。

效果很好,但是当我尝试保存训练好的模型时就会出现问题。

我从未修复过代码。有没有人知道这个问题?

请帮助我!

错误:

/home/anaconda3/envs/tensorflow/lib/python3.5/site-packages/keras/engine/network.
py:872: UserWarning: Layer lstm_2 was passed non-serializable keyword arguments: 
{'initial_state': [<tf.Tensor 'lstm_1/while/Exit_2:0' shape=(?, 128) dtype=float32>
, <tf.Tensor 'lstm_1/while/Exit_3:0' shape=(?, 128) dtype=float32>]}. They will 
not be included in the serialized model (and thus will be missing at 
deserialization time).'. They will not be included '

0 个答案:

没有答案