tf.profiler.experimental.start

Start profiling TensorFlow performance.

Used in the notebooks

Used in the guide Used in the tutorials

logdir Profiling results log directory.
options ProfilerOptions namedtuple to specify miscellaneous profiler options. See example usage below.

AlreadyExistsError If a profiling session is already running.

Example usage:

options = tf.profiler.experimental.ProfilerOptions(host_tracer_level = 3,
                                                   python_tracer_level = 1,
                                                   device_tracer_level = 1)