How do I list certain variables in the checkpoint?

前端 未结 3 1303
时光说笑
时光说笑 2021-02-06 02:21

I am working with autoencoders. My checkpoint contains the complete state of the network (i.e. the encoder, decoder, optimizer, etc). I want to fool around with the encodings. T

3条回答
  •  时光说笑
    2021-02-06 03:16

    You can view the saved variables in .ckpt file using,

    import tensorflow as tf
    
    variables_in_checkpoint = tf.train.list_variables('path.ckpt')
    
    print("Variables found in checkpoint file",variables_in_checkpoint)
    

提交回复
热议问题