Tensorflow

ph
Admin (토론 | 기여)님의 2018년 3월 21일 (수) 11:49 판
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)
이동: 둘러보기, 검색

tf.app.run()

How does tf.app.run() work?질문의 답 중에,

Tensorflow has some builtin command line flag handling mechanism. You can define your flags like tf.flags.DEFINE_integer('batch_size', 128, 'Number of images to process in a batch.') and then if you use tf.app.run() it will set things up so that you can globally access the passed values of the flags you defined, like tf.flags.FLAGS.batch_size from wherever you need it in your code. #