agents icon indicating copy to clipboard operation
agents copied to clipboard

Display of checkpoint information saved in tf_agents.utils.common.Checkpointer

Open atusi-nakajima opened this issue 3 years ago • 1 comments

I used save in tf_agents.utils.common.Checkpointer to save the checkpoint file. I would like to see the information (weight values, etc.) of the contents of the file, how can I display it? Here is a link to the file I want to work with. Please let me know.

atusi-nakajima avatar Sep 25 '21 01:09 atusi-nakajima

Underneath you're using tf.train.CheckpointManager.save(). Your question is how to inspect a checkpointed file from Tensorflow.

There's been some discussions about potentially using the inspect_checkpoint.py tool http://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/tools/inspect_checkpoint.py

(full disclosure I haven't used this myself).

If you know the model names and structures, you could always recreate the model and restore the weights following instructions here: https://www.tensorflow.org/api_docs/python/tf/train/Checkpoint

summer-yue avatar Oct 08 '21 00:10 summer-yue