仰天大笑出门去,我辈岂是蓬蒿人。这篇文章主要讲述if __name__ == "
__main__"
: tf.app.run()相关的知识,希望能为你提供帮助。
if __name__ == "__main__": means current file is executed under a shell instead of imported as a module.
the job of
tf.app.run()
is to
first
set the global flags for later usage like
from
tensorflow.python.platform
import
flags
f = flags.FLAGS
【if __name__ == " __main__" : tf.app.run()】and then run your custom main function with a set of arguments.
推荐阅读
- Android Camera2 拍照——使用TextureView
- mac下创建安卓应用hello-world
- Android Camera2 拍照入门学习
- app自动化测试中的相关api
- app操作的一些命令
- LRM-00109: could not open parameter file '/u01/app/oracle/product/12.1.0/db_1/dbs/initepps.ora&#
- mac Cordova安装安卓模拟器
- PrimeFaces FieldSet组件用法
- PrimeFaces编辑器用法