tf.compat.v1.all_variables

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