Ich spiele TensorBoard und kann kein einfaches Beispiel machen. Die Berechnung besteht einfach aus zwei Konstanten.TensorBoard zeigt keine Skalare
import tensorflow as tf
sess = tf.Session()
a = tf.constant(1, name = "const1")
b = tf.constant(10, name = "const2")
c = a + b
asum = tf.summary.scalar("g1" , a)
bsum = tf.summary.scalar("g2", b)
csum = tf.summary.scalar("gsum", c)
merged = tf.summary.merge_all()
train_writer = tf.summary.FileWriter('.\logs',sess.graph)
summary, _ = sess.run([merged, c])
train_writer.add_summary(summary, 0)
Dann habe ich es zuerst zusammengestellt:
sieht>python filename.py
alles gut.
Dann:
>tensorboard --logdir=".\logs" --inspect
Das Seltsame ist aufgetreten: es gab keine Skalare!
Found event files in:
.\logs
These tags are in .\logs:
audio -
histograms -
images -
scalars -
tensor -
======================================================================
Event statistics for .\logs:
audio -
graph
first_step 0
last_step 0
max_step 0
min_step 0
num_steps 1
outoforder_steps []
histograms -
images -
scalars -
sessionlog:checkpoint -
sessionlog:start -
sessionlog:stop -
tensor -
======================================================================
Version von TensorFlow ist: 1.2.1
Python-Version: 3.5.2