tensorflow-Windows下使用tensorboard
最近在學習Tensorflow中的tensoboard的視覺化,但是怎麼都無法實現,按照教程,在Windows下會無法顯示網頁,教程中是在Linux中實現的,檔路徑與Windows不一樣,下面我以官方給出教程為例,指出在Window下要修改的地方: from __future__ import absolute_import from __future__ import division from __future__ import print_function import argparse import sys import tensorflow as tf from tensorflow.examples.tutorials.mnist import input_data FLAGS = None def train(): # Import data mnist = input_data.read_data_sets(FLAGS.data_dir, one_hot=True, fake_data=FLAGS.fake_data) sess = tf.InteractiveSession() # Create a multilayer model. # Input placeholders with tf.name_scope('input'): x = tf.placeholder(tf.float32, [None, 784], name='x-input') y_ = tf.placeholder(tf.float32, [None, 10], name='y-input') with tf.name_scope('input_reshape'): image_shaped_input = tf.reshape(x, [-1, 28, 28, 1]) tf.summary.image('input', image_s