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, \
When you use tf.app.run(), you can transfer the variable very conveniently between threads using tf.app.flags. See this for further usage of tf.app.flags.
tf.app.run()
tf.app.flags