tf.contrib.framework.list_variables

tf.contrib.framework.list_variables(checkpoint_dir)

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

See the guide: Framework (contrib) > Checkpoint utilities

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