查看checkpoint中的变量名和值

import tensorflow as tf
from tensorflow.python.tools.inspect_checkpoint import print_tensors_in_checkpoint_file


latest_ckp = tf.train.latest_checkpoint('./checkpoint/')
print_tensors_in_checkpoint_file(latest_ckp, all_tensors=True, tensor_name='')

你可能感兴趣的:(TensorFlow学习)