ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more


View source on GitHub

Starts profiling.

logdir A log directory read by TensorBoard to export the profile results.
options namedtuple of ProfilerOptions for miscellaneous profiler options.

AlreadyExistsError If another profiling session is running.

Example usage:

    'logdir_path', tf.profiler.ProfilerOptions(host_tracer_level=2))
# do your training here.

Launch TensorBoard and point it to the same logdir you provided to this API. $ tensorboard --logdir=logdir_path Open your browser and go to localhost:6006/#profile to view profiling results.