Rate this Page

torch.cuda.graph_annotations.clear_kernel_annotations#

torch.cuda.graph_annotations.clear_kernel_annotations() None[source]#

Clear all recorded kernel annotations.

The annotation registry is process-global and accumulates across captures; long-running workloads that capture many graphs should clear it once recorded annotations have been consumed (e.g. after saving them alongside a profiler trace).

Warning

This API is in prototype and may change in future releases.