Missed TensorFlow World? Check out the recap. Learn more

tf.compat.v1.all_variables

View source on GitHub

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

tf.compat.v1.all_variables()