tf.compat.v1.all_variables

View source on GitHub

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

tf.compat.v1.all_variables()