I want to see variables that are stored in the tensorflow breakpoint along with their values. How to find the names of variables that are stored in the control point of the tensor flow?
EDIT:
I used tf.train.NewCheckpointReader
, which is explained here . But this is not given in the tensor flow documentation. Is there another way?
`
import tensorflow as tf v0 = tf.Variable([[1, 2, 3], [4, 5, 6]], dtype=tf.float32, name="v0") v1 = tf.Variable([[[1], [2]], [[3], [4]], [[5], [6]]], dtype=tf.float32, name="v1") init_all_op = tf.initialize_all_variables() save = tf.train.Saver({"v0": v0, "v1": v1}) checkpoint_path = os.path.join(model_dir, "model.ckpt") with tf.Session() as sess: sess.run(init_all_op)
`
source share