I am reading some example codes in Tensorflow, I found following code
flags = tf.app.flags FLAGS = flags.FLAGS flags.DEFINE_float(\'learning_rate\', 0.01, \
After trying many times I found this to print all FLAGS key as well as actual value -
for key in tf.app.flags.FLAGS.flag_values_dict(): print(key, FLAGS[key].value)