一:输出模型中所有变量及其对应的值
from tensorflow.python.tools.inspect_checkpoint import print_tensors_in_checkpoint_file
print_tensors_in_checkpoint_file(model_path='1dcnn.ckpt', tensor_name='', all_tensors=True)
二:分别输出模型中的所有变量名称和值
from tensorflow
一:输出模型中所有变量及其对应的值
from tensorflow.python.tools.inspect_checkpoint import print_tensors_in_checkpoint_file
print_tensors_in_checkpoint_file(model_path='1dcnn.ckpt', tensor_name='', all_tensors=True)
二:分别输出模型中的所有变量名称和值
from tensorflow