tf.summary.trace_off

Stops the current trace and discards any collected information.