擅长:python、mysql、java
<p>春芳的解决方案对我有效,但我想分享另一种方法。在</p>
<p>在TensorFlow的最新版本中,Google提供了一个“官方”<a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/contrib/rnn/python/tools/checkpoint_convert.py" rel="nofollow noreferrer">^{<cd1>}</a>实用程序来转换旧的RNN检查点:</p>
<pre><code>python checkpoint_convert.py [ write_v1_checkpoint] \
'/path/to/old_checkpoint' '/path/to/new_checkpoint'
</code></pre>