Missed TensorFlow World? Check out the recap. Learn more

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).