tensorboard中的No dashboards are active for the current data set.当前数据集没有活动的仪表板问题解决方案

在Windows 10环境下使用TensorFlow进行深度学习实践时,遇到Tensorboard显示'No dashboards are active for the current data set.'的问题。原因在于启动tensorboard时指定的日志目录路径不正确。通过将logdir参数更改为'C:\Users\周*颖\PycharmProjects\untitled.idea\logs',成功解决了问题。确保在logs文件夹内有events文件,然后在终端中进入上一级目录'.idea',运行tensorboard并提供正确的logdir路径,浏览器中打开显示的URL,即可看到正确的可视化结果。
摘要由CSDN通过智能技术生成

tensorboard中的No dashboards are active for the current data set.当前数据集没有活动的仪表板问题解决方案

我的环境是win10,这是我在做tensorflow可视化练习也就是tensorboard的时候遇到的问题。导致这个问题的原因是:启动tensorboard时的文件路径没有写对。
我把代码改为:tensorboard --logdir=C:\Users\周*颖\PycharmProjects\untitled.idea\logs 能够正常运行,完美!

  1. 运行程序
from __future__ import print_function
import tensorflow as tf


def add_layer(inputs, in_size, out_size, activation_function=None):
    # add one more layer and return the output of this layer
    with tf.name_scope('layer'):
        with tf.name_scope('weights'):
            Weights = tf.Variable(tf.random_normal([in_size, out_size]), name='W')
        with tf.name_scope('biases'):
            biases = tf.Variable(tf.zeros
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值