tf.profiler.experimental.ProfilerOptions
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 |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/python/tf/profiler/experimental/ProfilerOptions