tf.summary.trace_export

Stops and exports the active trace as a Summary and/or profile file.

Used in the notebooks

Used in the guideUsed in the tutorials

Stops the trace and exports all metadata collected during the trace to the default SummaryWriter, if one has been set.

nameA name for the summary to be written.
stepExplicit int64-castable monotonic step value for this summary. If omitted, this defaults to tf.summary.experimental.get_step(), which must not be None.
profiler_outdirThis arg is a no-op. Please set this in trace_on().

ValueErrorif a default writer exists, but no step was provided and tf.summary.experimental.get_step() is None.