0

I am trying to get tensorboard to simply show me my computation graph with no other summaries generated.

I am using the following code

import tensorflow as tf
tf.reset_default_graph()

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("output", tf.get_default_graph())
    print(sess.run(h))
    writer.close()

Then in the command line, starting from the folder in which I have stored the "output" folder, I use the following command:

$: tensorboard --logdir = output/

Tensorboard however tells me that there is no graph.... Help would be greatly greatly appreciated.

1
  • Add the logdir parameter without spaces: tensorboard --logdir=output/. Commented Sep 7, 2017 at 14:26

1 Answer 1

1

The program does not expect spaces between the equals character = in --logdir = <logdir>. You must either call Tensorboard like this:

tensorboard --logdir=output/

Or leave the = out entirely:

tensorboard --logdir output/
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.