I would like to achieve something like scalar_summary
, but not used as a Op
that takes a Variable
. E.g. If I call
for i in 10000:
value = 0.2 * i
myfun(tag, value, i)
In tensorboard events I expect it generates a plot named tag, with a line in it.
How can I do that?
Alternatively, if you want to generate a TensorBoard log in pure Python code, you can do the following:
summary_writer = tf.train.SummaryWriter(log_dir)
for i in 10000:
value = 0.2 * i
summary = tf.Summary(value=[tf.Summary.Value(tag=tag, simple_value=value)])
summary_writer.add_summary(summary, global_step=i)
summary_writer.close()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With