Open
Description
A 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()
Metadata
Metadata
Assignees
Labels
No labels