tf.profiler.experimental.start

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:

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

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.