1 Answers
JO242.00
2

It's just as simple as this is

import tensorflow as tf

variables = tf.train.list_variables([checkpoint_path])
print(variables_in_checkpoint)

It will return a list of tuples (name, shape).

There is also another way you can get the variables of a checkpoint file by using native built-in functions of TensorFlow checkpoint utils.

Reply
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?