以运行手写数字识别(mnist)为例。
第一步:找到tensorflow-master\tensorflow\examples\tutorials\mnist下的mnist_with_summaries.py文件。找到文件末尾处下面几行语句。

  parser.add_argument('--log_dir', type=str, default='/tmp/tensorflow/mnist/logs/mnist_with_summaries',
                      help='Summaries log directory')

我们需要修改以下路径,比如修改成下面的路径:

  parser.add_argument('--log_dir', type=str, default='C:/tmp/tensorflow/mnist/logs/mnist_with_summaries',
                      help='Summaries log directory')

即将训练时记录的数据保存在C:/tmp/tensorflow/mnist/logs/mnist_with_summaries路径下,可以根据实际情况自行修改。

第二步:打开Anaconda Prompt,进入tensorflow-master\tensorflow\examples\tutorials\mnist路径下,运行命令

python mnist_with_summaries.py

截图如下:
这里写图片描述

第三步:再打开一个Anaconda Prompt,输入如下命令:

tensorboard --logdir= C:\tmp\tensorflow\mnist\logs\mnist_with_summaries

截图如下:
这里写图片描述
接下来只要打开浏览器,输入地址:192.168.139.1:6006即可进入tensorboard。
这里写图片描述

参考:
http://blog.csdn.net/bill_zhang5/article/details/69283353

GitHub 加速计划 / te / tensorflow
17
4
下载
一个面向所有人的开源机器学习框架
最近提交(Master分支:8 天前 )
4f64a3d5 Instead, check for this case in `ResolveUsers` and `ResolveOperand`, by querying whether the `fused_expression_root` is part of the `HloFusionAdaptor`. This prevents us from stepping into nested fusions. PiperOrigin-RevId: 724311958 8 天前
aa7e952e Fix a bug in handling negative strides, and add a test case that exposes it. We can have negative strides that are not just -1, e.g. with a combining reshape. PiperOrigin-RevId: 724293790 8 天前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐