# tf.contrib.framework.list_variables

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/contrib/framework/python/framework/checkpoint_utils.py#L84-L99) |

Returns list of all variables in the latest checkpoint.

    tf.contrib.framework.list_variables(
        checkpoint_dir
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `checkpoint_dir` | Directory with checkpoints file or path to checkpoint. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| List of tuples `(name, shape)`. ||

<br />