.
大家好!
我刚刚尝试了 keras seq2seq 示例(链接)。
它工作得很好,但是当我尝试保存经过训练的模型时会出现问题。
我从来没有修复过代码。有没有人已经知道这个问题?
请帮我!
错误:
/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 '