What's the purpose of tf.app.flags in TensorFlow?

前端 未结 5 1624

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, \         


        
5条回答
  •  悲&欢浪女
    2020-12-04 07:30

    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.

提交回复
热议问题