tf.profiler.experimental.ProfilerOptions

View source on GitHub

Options to control profiler behaviors.

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]

host_tracer_level

python_tracer_level

device_tracer_level