How does tf.app.run() work?

前端 未结 6 1539
渐次进展
渐次进展 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条回答
  •  猫巷女王i
    2020-12-07 08:37

    2.0 Compatible Answer: If you want to use tf.app.run() in Tensorflow 2.0, we should use the command,

    tf.compat.v1.app.run() or you can use tf_upgrade_v2 to convert 1.x code to 2.0.

提交回复
热议问题