|View source on GitHub|
Starts a trace to record computation graphs and profiling information.
tf.summary.trace_on( graph=True, profiler=False )
Must be invoked in eager mode.
When enabled, TensorFlow runtime will collection information that can later be exported and consumed by TensorBoard. The trace is activated across the entire TensorFlow runtime and affects all threads of execution.
||If True, enables collection of executed graphs. It includes ones from tf.function invocation and ones from the legacy graph mode. The default is True.|
||If True, enables the advanced profiler. Enabling profiler implicitly enables the graph collection. The profiler may incur a high memory overhead. The default is False.|