Windows下Anaconda中tensorflow的tensorboard使用
tensorflow
一个面向所有人的开源机器学习框架
项目地址:https://gitcode.com/gh_mirrors/te/tensorflow
![](https://devpress.csdnimg.cn/6deffb34f7114cc1a2e1e686a67e0027.png)
·
以运行手写数字识别(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
![]( https://profile-avatar.csdnimg.cn/default.jpg)
![](https://devpress.csdnimg.cn/7174e1ca86c447029bb12f9ec0bd281c.png)
![](https://devpress.csdnimg.cn/096f7827187446559bd7b6030eb5db38.png)
![](https://devpress.csdnimg.cn/6deffb34f7114cc1a2e1e686a67e0027.png)
一个面向所有人的开源机器学习框架
最近提交(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 天前
更多推荐
所有评论(0)