Watch talks from the 2019 TensorFlow Dev Summit Watch now

tf.contrib.framework.list_variables

tf.contrib.framework.list_variables(checkpoint_dir)

Defined in tensorflow/contrib/framework/python/framework/checkpoint_utils.py.

Returns list of all variables in the latest checkpoint.

Args:

  • checkpoint_dir: Directory with checkpoints file or path to checkpoint.

Returns:

List of tuples (name, shape).