<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.21.0/tensorflow/python/ops/variables.py#L1807-L1811) |

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

    tf.compat.v1.all_variables()

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