tf.summary.trace_on

Starts a trace to record computation graphs and profiling information.

Used in the notebooks

Used in the guide Used in the tutorials

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.

To stop the trace and export the collected information, use