TensorFlow v2: Graph does not appear on TensorBoard
See original GitHub issueA graph may not appear if TensorFlow could not trace any graph during the execution. For instance, below code does not use @tf.function
and, because it is pure eager, there is no graph TensorFlow used.
# Missing @tf.function
def foo(x, y):
return tf.linalg.cross(x, y)
tf.summary.trace_on()
foo([1,2], [3,4])
with writer.as_default():
tf.summary.trace_export()
Other known issues
- When a function is invoked before trace, the graph does not show up
@tf.function
def foo(x, y):
return tf.linalg.cross(x, y)
foo([1,2], [3,4]) # this is not traced.
tf.summary.trace_on()
foo([1,2], [3,4])
with writer.as_default():
tf.summary.trace_export()
Issue Analytics
- State:
- Created 5 years ago
- Reactions:23
- Comments:42 (15 by maintainers)
Top Results From Across the Web
TensorFlow 2.0 - Graph not showing in TensorBoard
I'm trying to show the graph of a deep autoencoder in TensorBoard. I've called the decorator @tf.function on the function used for training, ......
Read more >Examining the TensorFlow Graph | TensorBoard
This tutorial presents a quick overview of how to generate graph diagnostic data and visualize it in TensorBoard's Graphs dashboard. You'll ...
Read more >Migrating tf.summary usage to TF 2.x | TensorBoard
If you are using tf.keras there may be no action you need to take to upgrade to TensorFlow 2.x.
Read more >Debugging Numerical Issues in TensorFlow Programs Using ...
This is certainly not how the model training is expected to behave: ... The Debugger V2 GUI in TensorBoard is organized into six...
Read more >Get started with TensorBoard - TensorFlow
The Graphs dashboard helps you visualize your model. In this case, the Keras graph of layers is shown which can help you ensure...
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 FreeTop 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
Top GitHub Comments
@cottrell Yup correct. Pure eager builds no graph. Keras always has built some graph underneath (the details escape me at the moment but IIRC, in v1, it built a graph using its own session and, in v2, it constructs graph with FuncGraph) and is able to show some graph unless you pass
run_eagerly
to its compile method.Device: macbook pro 2018 , macOS Mojave 10.14.5 tensorflow version: tensorflow==2.0.0a0 tensorflow-estimator-2.0-preview==1.14.0.dev2019052100
I have the same issues too, i followed the code shows in https://tensorflow.org/tensorboard/r2/graphs the most below method.
in the tutorials, it shows the graphs, however when i ran this code in my environment it doesn’t shows the graph in the tensorboard