How to read weights saved in tensorflow checkpoint file?

tensorflow

Solution

There's this utility which has on `print_tensors_in_checkpoint_file` method http://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/tools/inspect_checkpoint.py

Alternatively, you can use `Saver` to restore the model and use `session.run` on variable tensors to get values as numpy arrays

Problem

I'd like to read the weights and visualize them as images. But I don't see any documentation about model format and how to read the trained weights.

Original source