tf.profiler.experimental.ProfilerOptions
Stay organized with collections
Save and categorize content based on your preferences.
Options to control profiler behaviors.
tf.profiler.experimental.ProfilerOptions(
host_tracer_level=2, python_tracer_level=0, device_tracer_level=1
)
A tf.profiler.ProfilerOptions
hold the knobs to control tf.profiler's
behavior.
Fields:
host_tracer_level
: for adjust TraceMe levels. i.e. 1 => critical,
2 => info, 3 => verbose. [default to 2]
python_tracer_level
: for enable python function call tracing, 1 => enable.
0 => disable [default to 0]
device_tracer_level
: for adjust device (TPU/GPU) tracer level, 0 => disable
1 => enabled. We may introduce fine-tuned level in the
future. [default to 1]
Attributes |
host_tracer_level
|
|
python_tracer_level
|
|
device_tracer_level
|
|
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.
Last updated 2020-10-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-10-01 UTC."],[],[],null,["# tf.profiler.experimental.ProfilerOptions\n\n\u003cbr /\u003e\n\n|---------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.3.0/tensorflow/python/profiler/profiler_v2.py#L50-L75) |\n\nOptions to control profiler behaviors. \n\n tf.profiler.experimental.ProfilerOptions(\n host_tracer_level=2, python_tracer_level=0, device_tracer_level=1\n )\n\nA `tf.profiler.ProfilerOptions` hold the knobs to control tf.profiler's\nbehavior.\n\n#### Fields:\n\n- **`host_tracer_level`**: for adjust TraceMe levels. i.e. 1 =\\\u003e critical, 2 =\\\u003e info, 3 =\\\u003e verbose. \\[default to 2\\]\n- **`python_tracer_level`**: for enable python function call tracing, 1 =\\\u003e enable. 0 =\\\u003e disable \\[default to 0\\]\n- **`device_tracer_level`**: for adjust device (TPU/GPU) tracer level, 0 =\\\u003e disable 1 =\\\u003e enabled. We may introduce fine-tuned level in the future. \\[default to 1\\]\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|-----------------------|---------------|\n| `host_tracer_level` | \u003cbr /\u003e \u003cbr /\u003e |\n| `python_tracer_level` | \u003cbr /\u003e \u003cbr /\u003e |\n| `device_tracer_level` | \u003cbr /\u003e \u003cbr /\u003e |\n\n\u003cbr /\u003e"]]