Announcing the TensorFlow Dev Summit 2020 Learn more

tf.compat.v1.all_variables

View source on GitHub

Use tf.compat.v1.global_variables instead. (deprecated)

tf.compat.v1.all_variables()