A TF checkpoint typically includes a `.data-xxxxx` file and a `.index` file.
A TF checkpoint typically includes a `.data-xxxxx` file and a `.index` file.
Both are necessary.
Both are necessary.
`tf.train.NewCheckpointReader` is the best tool to parse TensorFlow checkpoint.
`tf.train.NewCheckpointReader` is the offical tool to parse TensorFlow checkpoint.
We have two example scripts to demo its usage, but read [TF docs](https://www.tensorflow.org/api_docs/python/tf/train/NewCheckpointReader) for details.
Read [TF docs](https://www.tensorflow.org/api_docs/python/tf/train/NewCheckpointReader) for details.
Tensorpack also provides some small tools to work with checkpoints, see
<aid="ft1">1</a>: Here we comapre models that have identical training & inference cost between the two implementation. However their numbers are different due to many small implementation details.
<aid="ft1">1</a>: Here we comapre models that have identical training & inference cost between the two implementation. However their numbers are different due to many small implementation details.