View source on GitHub

Starts profiling.

logdir A log directory read by TensorBoard to export the profile results.

AlreadyExistsError If another profiling session is running.

Example usage:

# 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.