擅长:python、mysql、java
<ol>
<li><p>看来恢复是为你处理的。在API文档中,它指出调用MonitoredTrainingSession将返回MonitoredSession的实例,该实例在创建时“…如果存在检查点,则还原变量…”</p></li>
<li><p>查看<code>tf.contrib.learn.Estimator(..).predict(..)</code>,更具体地说是<code>tf.contrib.learn.Estimator(..)._infer_model(..)</code>方法<a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/learn/python/learn/estimators/estimator.py#L535" rel="nofollow noreferrer">here</a>和{a2}。他们还创建了一个MonitoredSession。</p></li>
</ol>