"Tensorflow"의 두 판 사이의 차이
ph
(새 문서: * amazing examples : [https://github.com/aymericdamien/TensorFlow-Examples TensorFlow Examples] by aymericdamien) |
잔글 |
||
1번째 줄: | 1번째 줄: | ||
* amazing examples : [https://github.com/aymericdamien/TensorFlow-Examples TensorFlow Examples] by aymericdamien | * amazing examples : [https://github.com/aymericdamien/TensorFlow-Examples TensorFlow Examples] by aymericdamien | ||
+ | |||
+ | ==tf.app.run()== | ||
+ | [https://stackoverflow.com/q/33703624/766330 How does tf.app.run() work?]질문의 답 중에, | ||
+ | |||
+ | Tensorflow has some builtin command line flag handling mechanism. You can define your flags like <code>tf.flags.DEFINE_integer('batch_size', 128, 'Number of images to process in a batch.') </code>and then if you use <code>tf.app.run()</code> it will set things up so that you can globally access the passed values of the flags you defined, like <code>tf.flags.FLAGS.batch_size</code> from wherever you need it in your code. [https://stackoverflow.com/questions/33703624/how-does-tf-app-run-work#comment75468926_40766480 #] |
2018년 3월 21일 (수) 11:49 기준 최신판
- amazing examples : TensorFlow Examples by aymericdamien
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. #