Tensorflow 2.0 custom_scalar plugin for tensorboard
See original GitHub issueTo set layout for custom_layout plugin in tensorflow 1.x you should use method add_summary in FileWriter class. So the code should look like this:
with tf.summary.FileWriter(LOGDIR) as writer:
layout_summary = summary_lib.custom_scalar_pb(...)
writer.add_summary(layout_summary)
In tensorflow 2 add_summary method was removed. How can I set custom_scalar layout now? Is it a bug or a desired API change?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:5
Top Results From Across the Web
TensorBoard Scalars: Logging training metrics in Keras
You will learn how to use the Keras TensorBoard callback and TensorFlow Summary APIs to visualize default and custom scalars.
Read more >tensorboard Changelog - PyUp.io
Fix for run table overlapping text in npmi plugin (5468) ... [debugger-v2-tutorial]: https://www.tensorflow.org/tensorboard/debugger_v2
Read more >keras tensorboard, keras tensorboard example, keras print learning ...
In general, to log a custom scalar, you need to use tf.summary.scalar() with a file writer. TensorFlow version : 2.0.0; TensorFlow Keras version:...
Read more >tensorboardX - Python Package Health Analysis - Snyk
tensorboardX. v2.5.1. TensorBoardX lets you watch Tensors Flow without Tensorflow For more information about how to use this package see README.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I managed to make the custom_scalar plugin work in TF2.3 as follows:
It would however be nice to have native TF2 support for this, allowing us to write something along the lines
tf.summary.custom_scalar(layout)
.This is still an open issue; I’ve transferred it to the TensorBoard repository since that’s a better place to track it, since if we were to add a TF 2.0 native summary op for custom scalars, it would be defined in TensorBoard’s codebase.
Right now, we haven’t worked on the custom scalars dashboard in quite a while due to low usage and a general desire to approach this kind of feature differently (allowing UI-driven configuration rather than requiring the layout to be hardcoded in the written summaries).
At this point, I’d recommend using the workaround from https://github.com/tensorflow/tensorboard/issues/5343#issuecomment-749066283. (There is also the
tf.summary.experimental.write_raw_pb()
approach used in the updated demo code as of https://github.com/tensorflow/tensorboard/pull/5011, if you have a serialized version of the v1 summary proto.)