# tf.compat.v1.initialize_variables

<br />

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

See [`tf.compat.v1.variables_initializer`](https://www.tensorflow.org/versions/r2.0/api_docs/python/tf/compat/v1/variables_initializer). (deprecated)

    tf.compat.v1.initialize_variables(
        var_list, name='init'
    )

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

> [!NOTE]
> **Note:** The output of this function should be used. If it is not, a warning will be logged. To mark the output as used, call its .mark_used() method.