tf.compat.v1.variables_initializer

Returns an Op that initializes a list of variables.

Migrate to TF2

In TF2, variables are initialized immediately when they are created. There is no longer a need to run variable initializers before using them.