# tf.all_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/python/ops/variables.py#L3081-L3085) |

Use [`tf.compat.v1.global_variables`](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/global_variables) instead. (deprecated)

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.all_variables`](https://www.tensorflow.org/api_docs/python/tf/compat/v1/all_variables)

<br />

    tf.all_variables()

> [!WARNING]
> **Warning:** THIS FUNCTION IS DEPRECATED. It will be removed after 2017-03-02. Instructions for updating: Please use tf.global_variables instead.