I want to see the variables that are saved in a TensorFlow checkpoint along with their values. How can I find the variable names that are saved in a TensorFlow checkpoint?>
A few more details.
If your model is saved using V2 format, for example, if we have the following files in the directory /my/dir/
model-10000.data-00000-of-00001
model-10000.index
model-10000.meta
then the file_name parameter should only be the prefix, that is
print_tensors_in_checkpoint_file(file_name='/my/dir/model_10000', tensor_name='', all_tensors=True)
See https://github.com/tensorflow/tensorflow/issues/7696 for a discussion.