我已经安装了tensorflow(Tensorflow 1.1.0)和pip on vagrant ubuntu 14.04。我有一个测试文件,代码如下:
import tensorflow as tf
a = tf.add(1, 2,)
b = tf.multiply(a, 3)
c = tf.add(4, 5,)
d = tf.multiply(c, 6,)
e = tf.multiply(4, 5,)
f = tf.div(c, 6,)
g = tf.add(b, d)
h = tf.multiply(g, f)
with tf.Session() as sess:
writer = tf.summary.FileWriter("test_b/", sess.graph)
print(sess.run(h))
writer.close()
我运行
vagrant@vagrant-ubuntu-trusty-64:~$ tensorboard --logdir=test_b/
Starting TensorBoard 41 on port 6006
(You can navigate to http://10.0.2.15:6006)
但是当在浏览器中打开http://10.0.2.15:6006时,没有响应,并且说无法访问。
谢谢!