# tf.contrib.framework.get_variables_to_restore

<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/ops/variables.py#L428-L461) |

Gets the list of the variables to restore.

    tf.contrib.framework.get_variables_to_restore(
        include=None, exclude=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `include` | an optional list/tuple of scope strings for filtering which variables from the VARIABLES collection to include. None would include all the variables. |
| `exclude` | an optional list/tuple of scope strings for filtering which variables from the VARIABLES collection to exclude. None it would not exclude any. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| a list of variables to restore. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `TypeError` | include or exclude is provided but is not a list or a tuple. |

<br />