How do I find the variable names and values that are saved in a checkpoint?

后端 未结 5 502
执笔经年
执笔经年 2020-12-12 18:26

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?

5条回答
  •  青春惊慌失措
    2020-12-12 18:47

    Adding more parameter details to print_tensors_in_checkpoint_file

    file_name: not a physical file, just the prefix of filenames

    If no tensor_name is provided, prints the tensor names and shapes in the checkpoint file. If tensor_name is provided, prints the content of the tensor.(inspect_checkpoint.py)

    If all_tensor_names is True, Prints all the tensor names

    If all_tensor is 'True`, Prints all the tensor names and the corresponding content.

    N.B. all_tensor and all_tensor_names will override tensor_name

提交回复
热议问题