当前位置:  开发笔记 > 编程语言 > 正文

如何在Tensorflow中打印标志描述?

如何解决《如何在Tensorflow中打印标志描述?》经验,为你挑选了1个好方法。



1> mrry..:

flagsTensorFlow中使用的模块是python-gflags模块的包装器.要查看使用的Python应用程序中使用的所有标志的列表python-gflags,可以使用-hor --help标志运行它.例如:

$ tensorboard -h
usage: tensorboard [-h] [--logdir LOGDIR] [--debug DEBUG] [--nodebug]
                   [--host HOST] [--port PORT]

optional arguments:
  -h, --help       show this help message and exit
  --logdir LOGDIR  logdir specifies where TensorBoard will look to find
                   TensorFlow event files that it can display. In the simplest
                   case, logdir is a directory containing tfevents files.
                   TensorBoard also supports comparing multiple TensorFlow
                   executions: to do this, you can use directory whose
                   subdirectories contain tfevents files, as in the following
                   example: foo/bar/logdir/
                   foo/bar/logdir/mnist_1/events.out.tfevents.1444088766
                   foo/bar/logdir/mnist_2/events.out.tfevents.1444090064 You
                   may also pass a comma seperated list of log directories,
                   and you can assign names to individual log directories by
                   putting a colon between the name and the path, as in
                   tensorboard
                   --logdir=name1:/path/to/logs/1,name2:/path/to/logs/2
  --debug DEBUG    Whether to run the app in debug mode. This increases log
                   verbosity to DEBUG.
  --nodebug
  --host HOST      What host to listen to. Defaults to allowing remote access,
                   set to 127.0.0.1 to serve only on localhost.
  --port PORT      What port to serve TensorBoard on.

推荐阅读
贾志军
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有