当前位置: 动力学知识库 > 问答 > 编程问答 >

python - what does tf.app.flags do? why we need that?

问题描述:

This question already has an answer here:

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

    1 answer

网友答案:

This is google's way for parsing arguments from the commandline. Have a look at python-gflags. As far as I'm aware, google is the primary user of this commandline parsing library. The rest of the world uses argparse these days.

But basically, the "tl;dr;" is that you're right -- They are setting up global data. However, it's global data that can be fiddled with via the commandline.

分享给朋友:
您可能感兴趣的文章:
随机阅读: