打开Tensorboard的具体方法【windows环境】

博主在尝试使用Tensorboard时遇到了'connectex: The requested address is not valid in its context'的错误。通过在E盘创建logs文件夹并调整python代码位置,最终成功打开Tensorboard。这篇博客分享了问题解决的详细步骤。
摘要由CSDN通过智能技术生成


Tensorboard试了一下午都打不开.错误情况是:

connectex: Therequested address is not valid in its context.

后来得大神指点总算知道自己错在哪里,特来分享一下。


1.首先,我在E盘新建了一个文件夹名为logs。

python代码保存位置为E:\code,具体内容如下:

"""
Please note, this code is only for python 3+. If you are using python 2+, please modify the code accordingly.
"""
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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值