tf.summary.trace_export
Stay organized with collections
Save and categorize content based on your preferences.
Stops and exports the active trace as a Summary and/or profile file.
tf.summary.trace_export(
name, step=None, profiler_outdir=None
)
Stops the trace and exports all metadata collected during the trace to the
default SummaryWriter, if one has been set.
Args |
name
|
A name for the summary to be written.
|
step
|
Explicit int64 -castable monotonic step value for this summary. If
omitted, this defaults to tf.summary.experimental.get_step() , which must
not be None.
|
profiler_outdir
|
Output directory for profiler. It is required when profiler
is enabled when trace was started. Otherwise, it is ignored.
|
Raises |
ValueError
|
if a default writer exists, but no step was provided and
tf.summary.experimental.get_step() is None.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2023-10-06 UTC.
[null,null,["Last updated 2023-10-06 UTC."],[],[],null,["# tf.summary.trace_export\n\n\u003cbr /\u003e\n\n|------------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.13.1/tensorflow/python/ops/summary_ops_v2.py#L1337-L1385) |\n\nStops and exports the active trace as a Summary and/or profile file. \n\n tf.summary.trace_export(\n name, step=None, profiler_outdir=None\n )\n\nStops the trace and exports all metadata collected during the trace to the\ndefault SummaryWriter, if one has been set.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | A name for the summary to be written. |\n| `step` | Explicit `int64`-castable monotonic step value for this summary. If omitted, this defaults to `tf.summary.experimental.get_step()`, which must not be None. |\n| `profiler_outdir` | Output directory for profiler. It is required when profiler is enabled when trace was started. Otherwise, it is ignored. |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Raises ------ ||\n|--------------|--------------------------------------------------------------------------------------------------------|\n| `ValueError` | if a default writer exists, but no step was provided and `tf.summary.experimental.get_step()` is None. |\n\n\u003cbr /\u003e"]]