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