Tf.Estimator无法从保存的点进行训练

时间:2019-01-02 22:14:21

标签: tensorflow

我使用tf.Estimator API使用这种语法来训练模型

model = tf.estimator.Estimator(model_fn, model_dir=path)

该目录包含所有预期的文件。当我还原模型时,它表明它来自最后一个检查点,

INFO:tensorflow:Done calling model_fn.
INFO:tensorflow:Create CheckpointSaverHook.
INFO:tensorflow:Graph was finalized.
INFO:tensorflow:Restoring parameters from dir/model.ckpt-143450

但是当训练重新开始时,损失开始于未训练的水平

我用相同的代码恢复了模型

model = tf.estimator.Estimator(model_fn, model_dir=path)

怎么回事?

0 个答案:

没有答案