How does tf.app.run() work?

前端 未结 6 1541
渐次进展
渐次进展 2020-12-07 08:08

How does tf.app.run() work in Tensorflow translate demo?

In tensorflow/models/rnn/translate/translate.py, there is a call to tf.app.

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-07 08:48

    There is nothing special in tf.app. This is just a generic entry point script, which

    Runs the program with an optional 'main' function and 'argv' list.

    It has nothing to do with neural networks and it just calls the main function, passing through any arguments to it.

提交回复
热议问题