-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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()WilledgeR, ahmadsalim, ahmerb, moon-home, sumanthratna and 12 moreUesugiErii, zijunsu and A3itorA3itor and rickstaaA3itortgsmith61591
Metadata
Metadata
Assignees
Labels
No labels